2011-11-12, 14:54
replenish Wrote:Hi All,
Currently running an XBMC nightly build (specifically xbmc-20111110-26cc297-master-i386) to try and build a webinterface plugin using the new JSON-RPC API.
I appear to be having an issue with the VideoLibrary.GetSeasons method call.
In the result set I expect an array of seasons which contains properties specified for Video.Details.Season in the API but I only ever seem to get an array of seasons containing the seasons labels and no other properties.
Is the JSON-RPC API fully implemented in the nightly builds yet or am I missing something?
Cheers.
In general all the GetFoo methods only return some very basic properties of the items. If you want more properties you need to specify them in your request. So if you e.g. the "tvshowid" and the "season" property for every returned season you need to specify that in the "properties" parameter of your request.
Code:
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetSeasons", "params": { "tvshowid": <some-id>, "properties": [ "season", "tvshowid" ] }, "id": 1 }