XBMC Community Forum
AudioLibrary.GetAlbums issue - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: AudioLibrary.GetAlbums issue (/showthread.php?tid=92202)



AudioLibrary.GetAlbums issue - sling100 - 2011-01-26 16:35

Apologies if I'm being stupid, but I cannot fathom this.

I am controlling XBMC off an AMX system via the JSON interface and all seems good.

My one issue is that I am attempting to grab the album_description of one specified album (NOT one that is in the playlist, just one in the database)

I am using this syntax in the parameters -

{"fields": ["album_description"], "start": 5, "end": 6}

Now here's the wierd bit... It returns one album alright, but the one TWICE as high as the database listing I asked for - ie the above would return album 11. If I ask it for album 12 I get album 25. I even tried adding the 'start' and 'end' parameters into the fields section, but I get the same result.

It's driving me mad as everything else works fine. Any thoughts code wizards?

Thanks

Simon


- ncarthy - 2011-01-27 11:08

I think there is a problem with start/end searches using the GetAlbums method. It was discussed on the long json thread last week.

Try using GetAlbumDetails instead. It takes albumid as a parameter.

You must use a recent nightly build, it's not in Dharma.