VideoLibrary.GetMovies, sort by premiered (date?, year?)
#1
Hi

I'm trying to call VideoLibrary.GetMovies (Kodi 17.6), and sort the returned movies by premiere date, but I'm unable to find a sort method for this.

I've tried both "date" and "year", but they both sort by label instead?!
For example, if I POST the following to the /jsonrpc endpoint:
json:
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "properties": ["year", "premiered", "title"], "sort": { "order": "ascending", "method": "year" } }, "id": "movies" }
it gives me the following (abbreviated) output:
json:
..., "movies":[{"year":1968},{"year":2009},{"year":1999},{"year":2013}, ...

For comparison, sort-method "dateadded" seems to be doing the right thing.

Am I doing something wrong, or do the "date" and "year" not work for movies, and if such is there no way to actually sort movies by date?
Reply

Logout Mark Read Team Forum Stats Members Help
VideoLibrary.GetMovies, sort by premiered (date?, year?)0