Quick follow up music video section

Playcount returns an integer or None, using dateadded/created method in
API()
This commit is contained in:
angelblue05 2015-07-27 17:58:43 -05:00
parent d174f4793f
commit 2b79b471f0

View file

@ -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 #####