mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +00:00
Follow up for dateAdded
This commit is contained in:
parent
501adb6e3c
commit
20e3d9d7ac
1 changed files with 3 additions and 9 deletions
|
@ -106,9 +106,7 @@ class WriteKodiDB():
|
||||||
trailerUrl = "plugin://plugin.video.emby/trailer/?id=%s&mode=play" % trailerItem[0][u'Id']
|
trailerUrl = "plugin://plugin.video.emby/trailer/?id=%s&mode=play" % trailerItem[0][u'Id']
|
||||||
|
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")
|
||||||
dateadded = dateadded.replace(".0000000Z","")
|
|
||||||
dateadded = dateadded.split(".")[0]
|
|
||||||
else:
|
else:
|
||||||
dateadded = None
|
dateadded = None
|
||||||
|
|
||||||
|
@ -250,9 +248,7 @@ class WriteKodiDB():
|
||||||
track = MBitem.get("Track")
|
track = MBitem.get("Track")
|
||||||
|
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")
|
||||||
dateadded = dateadded.replace(".0000000Z","")
|
|
||||||
dateadded = dateadded.split(".")[0]
|
|
||||||
else:
|
else:
|
||||||
dateadded = None
|
dateadded = None
|
||||||
|
|
||||||
|
@ -382,9 +378,7 @@ class WriteKodiDB():
|
||||||
rating = MBitem.get("CommunityRating")
|
rating = MBitem.get("CommunityRating")
|
||||||
|
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")
|
||||||
dateadded = dateadded.replace(".0000000Z","")
|
|
||||||
dateadded = dateadded.split(".")[0]
|
|
||||||
else:
|
else:
|
||||||
dateadded = None
|
dateadded = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue