mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix key error
This commit is contained in:
parent
7b9a601735
commit
0200df3225
1 changed files with 2 additions and 2 deletions
|
@ -720,7 +720,7 @@ class LibrarySync(threading.Thread):
|
||||||
if "Episode" in itemType:
|
if "Episode" in itemType:
|
||||||
|
|
||||||
#get the tv show
|
#get the tv show
|
||||||
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem["SeriesId"],))
|
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem.get("SeriesId"),))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
if result:
|
if result:
|
||||||
kodi_show_id = result[0]
|
kodi_show_id = result[0]
|
||||||
|
@ -737,7 +737,7 @@ class LibrarySync(threading.Thread):
|
||||||
elif "Season" in itemType:
|
elif "Season" in itemType:
|
||||||
|
|
||||||
#get the tv show
|
#get the tv show
|
||||||
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem["SeriesId"],))
|
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem.get("SeriesId"),))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
if result:
|
if result:
|
||||||
kodi_show_id = result[0]
|
kodi_show_id = result[0]
|
||||||
|
|
Loading…
Reference in a new issue