From f0fb6d390baac287acc90e7064404e567b4d13ad Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 28 Apr 2015 18:45:39 -0500 Subject: [PATCH] Playcount fix Seems it was attached to the watched status instead of the actual playcount value. --- resources/lib/API.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/API.py b/resources/lib/API.py index 50e5587b..0a45bc63 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("Played") == True): - playcount="1" + if (userData.get("PlayCount")): + playcount= userData.get("PlayCount") else: - playcount="0" + playcount ="0" if userData.get('UnplayedItemCount') != None: - UnplayedItemCount = userData.get('UnplayedItemCount') + UnplayedItemCount = str(userData.get('UnplayedItemCount')) else: UnplayedItemCount = "0" if userData.get('LastPlayedDate') != None: