2014-04-02, 22:46
Hi guys,
I'm working with the JSON-RPC and have found that I'm getting different results for the same tvshow, when using two different calls to the JSON-RPC.
Specifically, the watchedepisodes count is inconsistent.
As you can see, it's the same tvshowid, but I get different watchedepisodes counts.
I'm working with the JSON-RPC and have found that I'm getting different results for the same tvshow, when using two different calls to the JSON-RPC.
Specifically, the watchedepisodes count is inconsistent.
Code:
Request 1:
{"jsonrpc": "2.0", "id": 1, "method": "VideoLibrary.GetTVShows", "params": {"properties": ["episode","watchedepisodes"]}}
Return:
{
id: 1,
jsonrpc: "2.0"
result: {
limits: {
end: 6
....
tvshows: [6]
....
2: {
episode: 1
label: "Dexter"
tvshowid: 2
watchedepisodes: 1
}
....
Request 2:
{"jsonrpc": "2.0", "id": 1, "method": "VideoLibrary.GetTVShowDetails", "params": {"tvshowid": 2, "properties": ["episode","watchedepisodes"]}}
Result:
{
id: 1
jsonrpc: "2.0"
result: {
tvshowdetails: {
episode: 1
label: "Dexter"
tvshowid: 2
watchedepisodes: 0
}
}
}
As you can see, it's the same tvshowid, but I get different watchedepisodes counts.