From ddf4e89165ee386cb7b9875541d8a9c4756a8106 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 11 Sep 2016 10:39:40 +0200 Subject: [PATCH] Prevent KeyError --- resources/lib/librarysync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index bbc22953..31be22c8 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -984,7 +984,8 @@ class LibrarySync(Thread): except: pass log.info("Sync threads finished") - if settings('FanartTV') == 'true': + if (settings('FanartTV') == 'true' and + itemType in ('Movies', 'TVShows')): # Save to queue for later processing typus = {'Movies': 'movie', 'TVShows': 'tvshow'}[itemType] for item in self.updatelist: