From c2f1bca6c2df3ed75f89f5e45c433ff743b75d1c Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 14 Mar 2016 09:56:04 +0100 Subject: [PATCH] Fix KeyError for library sync --- resources/lib/PlexAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 71a5bc67..14aef5ec 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -2092,7 +2092,7 @@ class API(): allartworks['Backdrop'].append(background) if not allartworks['Primary']: - primary = item['parentThumb'] + primary = item.get('parentThumb') if primary: primary = "%s%s" % (self.server, primary) primary = self.addPlexCredentialsToUrl(primary)