2011-11-10, 20:32
Code:
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieSetDetails", "params": {"setid": 0,"properties": ["thumbnail"]}, "id": "1"}
{
"error": {
"code": -32602,
"data": {
"method": "VideoLibrary.GetMovieSetDetails",
"stack": {
"message": "Value between 1 (inclusive) and 2147483647 (inclusive) expected but 0 received",
"name": "setid",
"type": "integer"
}
},
"message": "Invalid params."
},
"id": "1",
"jsonrpc": "2.0"
}
(PVR build git20111102)
Indeed, calling getMovieSetDetails is super fast.
So, to get a structure like i have in confluences movie view, where sets and non set movies are mixed at the bottom level, and you can dive into each set to view the set items, i'd have to:
Call getMovieSets to get a set list,
Call getMovies to get all movies those in sets and those without alike,
Iterate through all sets calling getMovieSetDetails for each set,
remove all matching movies from the "all movies" list,
join the resulting movie and set lists.
A little inconvenient IMHO. Or did i miss something again?