From d75af5009bd4c0f9701c3a5f53c2ff9111d91a76 Mon Sep 17 00:00:00 2001 From: Shaun Date: Fri, 5 Feb 2016 10:02:04 +1100 Subject: [PATCH] fix map error when new server plugin is not installed --- resources/lib/librarysync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 4ea39bdd..b0fc454b 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -112,7 +112,7 @@ class LibrarySync(threading.Thread): url = "{server}/Emby.Kodi.SyncQueue/GetServerDateTime?format=json" result = self.doUtils.downloadUrl(url) retention_time = "2010-01-01T00:00:00Z" - if result and result['RetentionDateTime']: + if result and result.get("RetentionDateTime"): self.logMsg("RetentionDateTime Found", 1) retention_time = result['RetentionDateTime'] retention_time = datetime.strptime(retention_time, "%Y-%m-%dT%H:%M:%SZ")