mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge branch 'master' of https://github.com/MediaBrowser/Emby.Kodi
This commit is contained in:
commit
62d9ae5b65
1 changed files with 2 additions and 10 deletions
|
@ -309,16 +309,8 @@ class WriteKodiVideoDB():
|
|||
album = MBitem.get("Album")
|
||||
track = MBitem.get("Track")
|
||||
dateplayed = userData.get("LastPlayedDate")
|
||||
|
||||
if MBitem.get("DateCreated") != None:
|
||||
dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")
|
||||
else:
|
||||
dateadded = None
|
||||
|
||||
if userData.get("PlayCount") != "0" and userData.get("PlayCount") != None:
|
||||
playcount = int(userData.get('PlayCount'))
|
||||
else:
|
||||
playcount = None #playcount must be set to NULL in the db
|
||||
playcount = userData.get('PlayCount')
|
||||
dateadded = API().getDateCreated(MBitem)
|
||||
|
||||
##### ADD OR UPDATE THE FILE AND PATH #####
|
||||
##### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY #####
|
||||
|
|
Loading…
Reference in a new issue