From 335c0175a762244fe29dd8cd48612f19ace2fc63 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 3 Nov 2018 10:37:10 +0100 Subject: [PATCH] Fix KeyErrors --- resources/lib/itemtypes/tvshows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/itemtypes/tvshows.py b/resources/lib/itemtypes/tvshows.py index 308849dc..2cd49f4a 100644 --- a/resources/lib/itemtypes/tvshows.py +++ b/resources/lib/itemtypes/tvshows.py @@ -133,8 +133,8 @@ class Show(ItemBase, TvShowMixin): return show = self.plexdb.show(plex_id) try: - kodi_id = show[3] - kodi_pathid = show[4] + kodi_id = show['kodi_id'] + kodi_pathid = show['kodi_pathid'] except TypeError: update_item = False query = 'SELECT COALESCE(MAX(idShow), 0) FROM tvshow'