mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
fix map error when new server plugin is not installed
This commit is contained in:
parent
01ab7c7a29
commit
d75af5009b
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class LibrarySync(threading.Thread):
|
||||||
url = "{server}/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
url = "{server}/Emby.Kodi.SyncQueue/GetServerDateTime?format=json"
|
||||||
result = self.doUtils.downloadUrl(url)
|
result = self.doUtils.downloadUrl(url)
|
||||||
retention_time = "2010-01-01T00:00:00Z"
|
retention_time = "2010-01-01T00:00:00Z"
|
||||||
if result and result['RetentionDateTime']:
|
if result and result.get("RetentionDateTime"):
|
||||||
self.logMsg("RetentionDateTime Found", 1)
|
self.logMsg("RetentionDateTime Found", 1)
|
||||||
retention_time = result['RetentionDateTime']
|
retention_time = result['RetentionDateTime']
|
||||||
retention_time = datetime.strptime(retention_time, "%Y-%m-%dT%H:%M:%SZ")
|
retention_time = datetime.strptime(retention_time, "%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|
Loading…
Reference in a new issue