diff --git a/resources/lib/API.py b/resources/lib/API.py index 0a45bc63..50e5587b 100644 --- a/resources/lib/API.py +++ b/resources/lib/API.py @@ -131,12 +131,12 @@ class API(): favorite="True" else: favorite="False" - if (userData.get("PlayCount")): - playcount= userData.get("PlayCount") + if(userData.get("Played") == True): + playcount="1" else: - playcount ="0" + playcount="0" if userData.get('UnplayedItemCount') != None: - UnplayedItemCount = str(userData.get('UnplayedItemCount')) + UnplayedItemCount = userData.get('UnplayedItemCount') else: UnplayedItemCount = "0" if userData.get('LastPlayedDate') != None: