2018-03-25, 23:30
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:
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?
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:
it gives me the following (abbreviated) output:json:{ "jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "properties": ["year", "premiered", "title"], "sort": { "order": "ascending", "method": "year" } }, "id": "movies" }
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?