mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix up date added
This commit is contained in:
parent
552a9a30bd
commit
501adb6e3c
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,7 @@ class WriteKodiDB():
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].replace("T"," ")
|
||||||
dateadded = dateadded.replace(".0000000Z","")
|
dateadded = dateadded.replace(".0000000Z","")
|
||||||
|
dateadded = dateadded.split(".")[0]
|
||||||
else:
|
else:
|
||||||
dateadded = None
|
dateadded = None
|
||||||
|
|
||||||
|
@ -251,6 +252,7 @@ class WriteKodiDB():
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].replace("T"," ")
|
||||||
dateadded = dateadded.replace(".0000000Z","")
|
dateadded = dateadded.replace(".0000000Z","")
|
||||||
|
dateadded = dateadded.split(".")[0]
|
||||||
else:
|
else:
|
||||||
dateadded = None
|
dateadded = None
|
||||||
|
|
||||||
|
@ -382,6 +384,7 @@ class WriteKodiDB():
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].replace("T"," ")
|
||||||
dateadded = dateadded.replace(".0000000Z","")
|
dateadded = dateadded.replace(".0000000Z","")
|
||||||
|
dateadded = dateadded.split(".")[0]
|
||||||
else:
|
else:
|
||||||
dateadded = None
|
dateadded = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue