2013-11-19, 14:43
(2013-11-19, 14:26)Montellese Wrote:(2013-11-16, 21:12)Tolriq Wrote: Just discovered a strange bug with JSON.
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
Thanks for the report. I tracked down the problem but will have to see how best to fix it.
EDIT: Mind creating a bug report on track for it as it's easier to keep track of those than of forum posts.
http://trac.xbmc.org/ticket/14703