Playcount fix

Seems it was attached to the watched status instead of the actual
playcount value.
This commit is contained in:
angelblue05 2015-04-28 18:45:39 -05:00
parent 2f3d609f53
commit f0fb6d390b

View file

@ -131,12 +131,12 @@ class API():
favorite="True" favorite="True"
else: else:
favorite="False" favorite="False"
if(userData.get("Played") == True): if (userData.get("PlayCount")):
playcount="1" playcount= userData.get("PlayCount")
else: else:
playcount ="0" playcount ="0"
if userData.get('UnplayedItemCount') != None: if userData.get('UnplayedItemCount') != None:
UnplayedItemCount = userData.get('UnplayedItemCount') UnplayedItemCount = str(userData.get('UnplayedItemCount'))
else: else:
UnplayedItemCount = "0" UnplayedItemCount = "0"
if userData.get('LastPlayedDate') != None: if userData.get('LastPlayedDate') != None: