2018-05-03, 17:34
I'm able to successfully make JSON RPC calls and receive the data. However, often times I want some information that may be available in the Method calls, but if I did not specify it in 'properties' I won't get to see it.
Is there a way to make a Method call that will return all key/value pairs available for 'properties' ?
For eg: a call like this one won't return 'season' and 'episode' (possibly very many more) but I won't know that until I try those keys in properties and either wait for the call to fail or succeed.
{ "jsonrpc": "2.0",
"method": "VideoLibrary.GetEpisodes",
"params": {
tvshowid: tvShowId,
"limits": { "start" : 0, "end": 1000 },
"properties" : ["rating", "title", "originaltitle", "thumbnail", "playcount", "file", "plot"]
},
"id": "libTvShows"} )
Thanks in advance.
Is there a way to make a Method call that will return all key/value pairs available for 'properties' ?
For eg: a call like this one won't return 'season' and 'episode' (possibly very many more) but I won't know that until I try those keys in properties and either wait for the call to fail or succeed.
{ "jsonrpc": "2.0",
"method": "VideoLibrary.GetEpisodes",
"params": {
tvshowid: tvShowId,
"limits": { "start" : 0, "end": 1000 },
"properties" : ["rating", "title", "originaltitle", "thumbnail", "playcount", "file", "plot"]
},
"id": "libTvShows"} )
Thanks in advance.