JSON - Sort Method Query.
#1
I'm going cross-eyed reading the Wiki and getting nowhere, so wonder if anyone can point me in the right direction.

I can issue the following request to return all of my albums, sorted by artist:
Code:
http://192.168.1.4:8080/jsonrpc?request={"jsonrpc":"2.0","method":"audioLibrary.GetAlbums","params":{"sort":{"order":"ascending","method":"artist","ignorearticle":true},"properties":["artist"]},"id":1}
But I can't figure out what sort method to use if I want to return all of my albums sorted primarily by artist and then, secondarily, by year.

Can anyone put me out of my misery?

Many thanks in advance,

Fergus.
Reply
#2
You can't sort by that directly from json.  The best you can do is sort the result returned by year.  The fields you can use are defined here -> https://github.com/xbmc/xbmc/blob/master....json#L103
Learning Linux the hard way !!
Reply
#3
Thanks for that - much appreciated!
Reply

Logout Mark Read Team Forum Stats Members Help
JSON - Sort Method Query.0