Minor adjustment to API playcount

If Emby item is played but playcount is zero, instead import playcount
as 1 to match playstate.
This commit is contained in:
angelblue05 2015-05-20 04:45:43 -05:00
parent b556707ce6
commit 45434f42ee

View file

@ -158,7 +158,10 @@ class API():
else:
favorite=False
if(userData.get("Played") == True):
playcount= userData.get('PlayCount')
# Cover the Emby scenario where item is played but playcount is 0.
playcount = userData.get('PlayCount')
if playcount == 0:
playcount = 1
else:
playcount="0"
if userData.get('UnplayedItemCount') != None: