From 36884c05371bb3bd0cd698faa12b956713715ede Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 15 Apr 2016 09:32:04 +0200 Subject: [PATCH] Fix Plex Date added missing --- resources/lib/PlexAPI.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index ddaeac46..481e0987 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -1256,11 +1256,15 @@ class API(): 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') if res is not None: res = utils.DateToKodi(res) + else: + res = '2000-01-01 10:00:00' return res def getUserData(self):