mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
fix for playcount reported wrong by Kodi
unwatched items are calculated when the playcount is set to NULL in the database and not 0
This commit is contained in:
parent
d6478befdb
commit
60957668f3
1 changed files with 6 additions and 0 deletions
|
@ -116,6 +116,8 @@ class WriteKodiDB():
|
||||||
playcount = 0
|
playcount = 0
|
||||||
if userData.get("PlayCount") == "1":
|
if userData.get("PlayCount") == "1":
|
||||||
playcount = 1
|
playcount = 1
|
||||||
|
else:
|
||||||
|
playcount = None #playcount must be set to NULL in the db
|
||||||
|
|
||||||
#### ADD OR UPDATE THE FILE AND PATH ###########
|
#### ADD OR UPDATE THE FILE AND PATH ###########
|
||||||
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
||||||
|
@ -260,6 +262,8 @@ class WriteKodiDB():
|
||||||
playcount = 0
|
playcount = 0
|
||||||
if userData.get("PlayCount") == "1":
|
if userData.get("PlayCount") == "1":
|
||||||
playcount = 1
|
playcount = 1
|
||||||
|
else:
|
||||||
|
playcount = None #playcount must be set to NULL in the db
|
||||||
|
|
||||||
#### ADD OR UPDATE THE FILE AND PATH ###########
|
#### ADD OR UPDATE THE FILE AND PATH ###########
|
||||||
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
||||||
|
@ -533,6 +537,8 @@ class WriteKodiDB():
|
||||||
playcount = None
|
playcount = None
|
||||||
if userData.get("PlayCount") == "1":
|
if userData.get("PlayCount") == "1":
|
||||||
playcount = 1
|
playcount = 1
|
||||||
|
else:
|
||||||
|
playcount = None #playcount must be set to NULL in the db
|
||||||
|
|
||||||
#### ADD OR UPDATE THE FILE AND PATH ###########
|
#### ADD OR UPDATE THE FILE AND PATH ###########
|
||||||
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
||||||
|
|
Loading…
Reference in a new issue