Fix up date added

This commit is contained in:
xnappo 2015-05-03 18:04:24 -05:00
parent 552a9a30bd
commit 501adb6e3c

View file

@ -108,6 +108,7 @@ class WriteKodiDB():
if MBitem.get("DateCreated") != None:
dateadded = MBitem["DateCreated"].replace("T"," ")
dateadded = dateadded.replace(".0000000Z","")
dateadded = dateadded.split(".")[0]
else:
dateadded = None
@ -251,6 +252,7 @@ class WriteKodiDB():
if MBitem.get("DateCreated") != None:
dateadded = MBitem["DateCreated"].replace("T"," ")
dateadded = dateadded.replace(".0000000Z","")
dateadded = dateadded.split(".")[0]
else:
dateadded = None
@ -382,6 +384,7 @@ class WriteKodiDB():
if MBitem.get("DateCreated") != None:
dateadded = MBitem["DateCreated"].replace("T"," ")
dateadded = dateadded.replace(".0000000Z","")
dateadded = dateadded.split(".")[0]
else:
dateadded = None