Fix KeyErrors

This commit is contained in:
croneter 2018-11-03 10:37:10 +01:00
parent 5673abc19b
commit 335c0175a7

View file

@ -133,8 +133,8 @@ class Show(ItemBase, TvShowMixin):
return return
show = self.plexdb.show(plex_id) show = self.plexdb.show(plex_id)
try: try:
kodi_id = show[3] kodi_id = show['kodi_id']
kodi_pathid = show[4] kodi_pathid = show['kodi_pathid']
except TypeError: except TypeError:
update_item = False update_item = False
query = 'SELECT COALESCE(MAX(idShow), 0) FROM tvshow' query = 'SELECT COALESCE(MAX(idShow), 0) FROM tvshow'