Fix Plex Date added missing

This commit is contained in:
tomkat83 2016-04-15 09:32:04 +02:00
parent 5593b9cd91
commit 36884c0537

View file

@ -1256,11 +1256,15 @@ class API():
def getDateCreated(self): def getDateCreated(self):
""" """
Returns the date when this library item was created or None Returns the date when this library item was created.
If not found, returns 2000-01-01 10:00:00
""" """
res = self.item.attrib.get('addedAt') res = self.item.attrib.get('addedAt')
if res is not None: if res is not None:
res = utils.DateToKodi(res) res = utils.DateToKodi(res)
else:
res = '2000-01-01 10:00:00'
return res return res
def getUserData(self): def getUserData(self):