mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
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:
parent
b556707ce6
commit
45434f42ee
1 changed files with 4 additions and 1 deletions
|
@ -158,7 +158,10 @@ class API():
|
||||||
else:
|
else:
|
||||||
favorite=False
|
favorite=False
|
||||||
if(userData.get("Played") == True):
|
if(userData.get("Played") == True):
|
||||||
|
# Cover the Emby scenario where item is played but playcount is 0.
|
||||||
playcount = userData.get('PlayCount')
|
playcount = userData.get('PlayCount')
|
||||||
|
if playcount == 0:
|
||||||
|
playcount = 1
|
||||||
else:
|
else:
|
||||||
playcount="0"
|
playcount="0"
|
||||||
if userData.get('UnplayedItemCount') != None:
|
if userData.get('UnplayedItemCount') != None:
|
||||||
|
|
Loading…
Reference in a new issue