2011-05-09, 03:01
Hi Mindzai,
I was wondering if there be a new version of your wrapper for the new JSON-RPC API?
Also i spent some time this morning looking at my issue with the wrong albums being returned by AudioLibrary->GetAlbums(), and i have to say i'm pretty confused as to what is going on, i honestly don't know how to proceed, as far as i can tell the problem must be coming from the JSON-RPC API but if that is the case why does it only happen to me??
If you have a moment or two could you look at the output and maybe make a comment?
My test library has 12 albums, first the result of a AudioLibrary->GetAlbums() call with no param:now the array i send as arguments to the same calland finally the result of the call with the arguments included
You can see from the second call the start value '2' is correct but the albumid of the items returned match items [4] and [5] which is not expected, the albumid's should match items [2] and [3].
At this point any feedback would be appreciated.
I was wondering if there be a new version of your wrapper for the new JSON-RPC API?
Also i spent some time this morning looking at my issue with the wrong albums being returned by AudioLibrary->GetAlbums(), and i have to say i'm pretty confused as to what is going on, i honestly don't know how to proceed, as far as i can tell the problem must be coming from the JSON-RPC API but if that is the case why does it only happen to me??
If you have a moment or two could you look at the output and maybe make a comment?
My test library has 12 albums, first the result of a AudioLibrary->GetAlbums() call with no param:
Code:
Array
(
[albums] => Array
(
[0] => Array
(
[albumid] => 1
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/80ff4ab6.tbn
[label] => Beats, Rhymes and Life
[thumbnail] => special://masterprofile/Thumbnails/Music/f/f7229512.tbn
)
[1] => Array
(
[albumid] => 2
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/023f21fa.tbn
[label] => Chocolates and Cigarettes
[thumbnail] => special://masterprofile/Thumbnails/Music/6/68ce1b2b.tbn
)
[2] => Array
(
[albumid] => 3
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/efb5feb7.tbn
[label] => The Rainwater LP
[thumbnail] => special://masterprofile/Thumbnails/Music/d/d8f88e44.tbn
)
[3] => Array
(
[albumid] => 4
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/16e1d41c.tbn
[label] => Chasing The Dragon
[thumbnail] => special://masterprofile/Thumbnails/Music/a/a729bf8e.tbn
)
[4] => Array
(
[albumid] => 5
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/5390dc46.tbn
[label] => Random Acts Of Kindness
[thumbnail] => special://masterprofile/Thumbnails/Music/e/e1d617b8.tbn
)
[5] => Array
(
[albumid] => 6
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/369390a1.tbn
[label] => Like The Deserts Miss The Rain
[thumbnail] => special://masterprofile/Thumbnails/Music/4/4e1edf77.tbn
)
[6] => Array
(
[albumid] => 7
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/9dddda93.tbn
[label] => All Day
[thumbnail] => special://masterprofile/Thumbnails/Music/d/de92f260.tbn
)
[7] => Array
(
[albumid] => 8
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/3c90196e.tbn
[label] => Waiting For You...
[thumbnail] => special://masterprofile/Thumbnails/Music/b/b2b4c704.tbn
)
[8] => Array
(
[albumid] => 9
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/a68c7fbe.tbn
[label] => Only By The Night
[thumbnail] => special://masterprofile/Thumbnails/Music/5/5d79c476.tbn
)
[9] => Array
(
[albumid] => 10
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/d5e84e8a.tbn
[label] => Remain In Light
[thumbnail] => special://masterprofile/Thumbnails/Music/9/9eeac53b.tbn
)
[10] => Array
(
[albumid] => 11
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/121caa73.tbn
[label] => DJ-Kicks - Daddy G
[thumbnail] => special://masterprofile/Thumbnails/Music/4/41d498af.tbn
)
[11] => Array
(
[albumid] => 12
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/121caa73.tbn
[label] => Fabriclive 29 - Cut Copy
[thumbnail] => special://masterprofile/Thumbnails/Music/c/cdadf88d.tbn
)
)
[end] => 12
[start] => 0
[total] => 12
)
Code:
Array
(
[start] => 2
[end] => 4
)
Code:
Array
(
[albums] => Array
(
[0] => Array
(
[albumid] => 5
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/5390dc46.tbn
[label] => Random Acts Of Kindness
[thumbnail] => special://masterprofile/Thumbnails/Music/e/e1d617b8.tbn
)
[1] => Array
(
[albumid] => 6
[fanart] => special://masterprofile/Thumbnails/Music/Fanart/369390a1.tbn
[label] => Like The Deserts Miss The Rain
[thumbnail] => special://masterprofile/Thumbnails/Music/4/4e1edf77.tbn
)
)
[end] => 4
[start] => 2
[total] => 4
)
You can see from the second call the start value '2' is correct but the albumid of the items returned match items [4] and [5] which is not expected, the albumid's should match items [2] and [3].
At this point any feedback would be appreciated.