Prevent KeyError

This commit is contained in:
tomkat83 2016-09-11 10:39:40 +02:00
parent 1370bda432
commit ddf4e89165

View file

@ -984,7 +984,8 @@ class LibrarySync(Thread):
except: except:
pass pass
log.info("Sync threads finished") log.info("Sync threads finished")
if settings('FanartTV') == 'true': if (settings('FanartTV') == 'true' and
itemType in ('Movies', 'TVShows')):
# Save to queue for later processing # Save to queue for later processing
typus = {'Movies': 'movie', 'TVShows': 'tvshow'}[itemType] typus = {'Movies': 'movie', 'TVShows': 'tvshow'}[itemType]
for item in self.updatelist: for item in self.updatelist: