2013-11-16, 21:12
Just discovered a strange bug with JSON.
Send back playcount field with the actual number episode watched like 92 and field episode contains the actual number of episode so need to substract the values to know the show watched status.
when sending :
I.E. same request without cast
Then playcount is sendback as 1 or 0 depending on the actual played status of the show or not.
This is a quite inconsistent behavior leading to some troubles
Code:
{"id":1,"jsonrpc":"2.0","method":"VideoLibrary.GetTVShows","params":{"limits":{"start":0,"end":1500},"properties":["episode","genre","rating","originaltitle","studio","year","plot","title","playcount","art","dateadded","mpaa","lastplayed","sorttitle","cast"]}}
Send back playcount field with the actual number episode watched like 92 and field episode contains the actual number of episode so need to substract the values to know the show watched status.
when sending :
Code:
{"id":1,"jsonrpc":"2.0","method":"VideoLibrary.GetTVShows","params":{"limits":{"start":0,"end":1500},"properties":["episode","genre","rating","originaltitle","studio","year","plot","title","playcount","art","dateadded","mpaa","lastplayed","sorttitle"]}}
I.E. same request without cast
Then playcount is sendback as 1 or 0 depending on the actual played status of the show or not.
This is a quite inconsistent behavior leading to some troubles