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:
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: