mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix keyerror
This commit is contained in:
parent
550c7a7092
commit
ab0d5e24be
1 changed files with 3 additions and 2 deletions
|
@ -1283,7 +1283,7 @@ class ManualSync(LibrarySync):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
all_koditvshows = {}
|
all_koditvshows = {}
|
||||||
|
|
||||||
log.info("all_koditvshows = %s" % all_koditvshows)
|
log.info("all_koditvshows = %s", all_koditvshows)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
all_kodiepisodes = dict(emby_db.get_checksum('Episode'))
|
all_kodiepisodes = dict(emby_db.get_checksum('Episode'))
|
||||||
|
@ -1364,7 +1364,8 @@ class ManualSync(LibrarySync):
|
||||||
API = api.API(embyepisode)
|
API = api.API(embyepisode)
|
||||||
itemid = embyepisode['Id']
|
itemid = embyepisode['Id']
|
||||||
all_embyepisodesIds.add(itemid)
|
all_embyepisodesIds.add(itemid)
|
||||||
all_embytvshowsIds.add(embyepisode['SeriesId'])
|
if "SeriesId" in embyepisode:
|
||||||
|
all_embytvshowsIds.add(embyepisode['SeriesId'])
|
||||||
|
|
||||||
if all_kodiepisodes.get(itemid) != API.get_checksum():
|
if all_kodiepisodes.get(itemid) != API.get_checksum():
|
||||||
# Only update if movie is not in Kodi or checksum is different
|
# Only update if movie is not in Kodi or checksum is different
|
||||||
|
|
Loading…
Reference in a new issue