Prevent KeyError
This commit is contained in:
parent
1370bda432
commit
ddf4e89165
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue