Open gunwald opened 9 years ago
Found out that the JSON RPC call is wrong. Currently the interface issues for example:
{
"jsonrpc":"2.0",
"method":"AudioLibrary.GetSongs",
"id":"1420984200862",
"params":[
["title","artist","albumartist","genre","year","rating","album","track","duration","playcount","fanart","thumbnail","file","albumid","lastplayed","disc","genreid","artistid","displayartist","albumartistid"],
{
"start":0,
"end":500
},
{
"sort":{
"method":"dateadded",
"order":"descending"
}
},
{
"albumid":2365
}
]
}
where it should be (without nested sort
object)
{
"jsonrpc":"2.0",
"method":"AudioLibrary.GetSongs",
"id":"1420984200862",
"params":[
["title","artist","albumartist","genre","year","rating","album","track","duration","playcount","fanart","thumbnail","file","albumid","lastplayed","disc","genreid","artistid","displayartist","albumartistid"],
{
"start":0,
"end":500
},
{
"method":"dateadded",
"order":"descending"
},
{
"albumid":2365
}
]
}
I suggest sorting titles by track number by default.
If you click on an folder containing music chorus sorts the containing songs by the title of the song, but it should consider the file name instead. To have some options for the sort would be great. Like: file name, song name, song artist, album, track number. To sort it by the song name is does not make any sense.