From fdff2cefb7a39679e6cbb33149fb8e8a2c2974e9 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 29 Apr 2015 23:10:37 -0500 Subject: [PATCH] Revert "Playcount fix" This reverts commit f0fb6d390baac287acc90e7064404e567b4d13ad. --- 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 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: