Fix keyerror

This commit is contained in:
angelblue05 2016-09-18 18:30:11 -05:00
parent 550c7a7092
commit ab0d5e24be
1 changed files with 3 additions and 2 deletions

View File

@ -1283,7 +1283,7 @@ class ManualSync(LibrarySync):
except ValueError:
all_koditvshows = {}
log.info("all_koditvshows = %s" % all_koditvshows)
log.info("all_koditvshows = %s", all_koditvshows)
try:
all_kodiepisodes = dict(emby_db.get_checksum('Episode'))
@ -1364,6 +1364,7 @@ class ManualSync(LibrarySync):
API = api.API(embyepisode)
itemid = embyepisode['Id']
all_embyepisodesIds.add(itemid)
if "SeriesId" in embyepisode:
all_embytvshowsIds.add(embyepisode['SeriesId'])
if all_kodiepisodes.get(itemid) != API.get_checksum():