mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06: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:
|
||||
favorite=False
|
||||
if(userData.get("Played") == True):
|
||||
# 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:
|
||||
|
|
Loading…
Reference in a new issue