This commit is contained in:
Marcel van der Veldt 2015-07-28 01:16:33 +02:00
commit 62d9ae5b65

View file

@ -309,16 +309,8 @@ class WriteKodiVideoDB():
album = MBitem.get("Album") album = MBitem.get("Album")
track = MBitem.get("Track") track = MBitem.get("Track")
dateplayed = userData.get("LastPlayedDate") dateplayed = userData.get("LastPlayedDate")
playcount = userData.get('PlayCount')
if MBitem.get("DateCreated") != None: dateadded = API().getDateCreated(MBitem)
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
##### 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 #####