2018-05-03, 07:52
I'm using method 'VideoLibrary.GetTVShows' to retrieve list of TV shows and am able to receive it. But the response does not have any 'tvshowid' field. (I have tried adding "tvshowid" in properties, but that just makes the call fail with an error message)
In absence of this field, how do I fetch season and episodes of any specific show ? My current JSON RPC call to 'VideoLibrary.GetEpisodes' returns all episodes of all shows. Which is not what I want. I want only specific show.
Here are the calls that I make for the two methods above:
{ "jsonrpc": "2.0",
"method": "VideoLibrary.GetTVShows",
"params": { "limits": { "start" : 0, "end": 1000 },
"properties" : ["art", "rating", "title", "originaltitle", "thumbnail", "playcount", "file", "plot", "cast", "year", "genre", "season", "episode"]
},
"id": "libTvShows"} );
{ "jsonrpc": "2.0",
"method": "VideoLibrary.GetEpisodes",
"params": {
"limits": { "start" : 0, "end": 1000 },
"properties" : ["art", "rating", "title", "originaltitle", "thumbnail", "playcount", "file", "plot", "season", "episode"]
},
"id": "libTvShows"} );
Thanks in advance.
In absence of this field, how do I fetch season and episodes of any specific show ? My current JSON RPC call to 'VideoLibrary.GetEpisodes' returns all episodes of all shows. Which is not what I want. I want only specific show.
Here are the calls that I make for the two methods above:
{ "jsonrpc": "2.0",
"method": "VideoLibrary.GetTVShows",
"params": { "limits": { "start" : 0, "end": 1000 },
"properties" : ["art", "rating", "title", "originaltitle", "thumbnail", "playcount", "file", "plot", "cast", "year", "genre", "season", "episode"]
},
"id": "libTvShows"} );
{ "jsonrpc": "2.0",
"method": "VideoLibrary.GetEpisodes",
"params": {
"limits": { "start" : 0, "end": 1000 },
"properties" : ["art", "rating", "title", "originaltitle", "thumbnail", "playcount", "file", "plot", "season", "episode"]
},
"id": "libTvShows"} );
Thanks in advance.