From 9245f44f70c51242adcb11153129c11ca65809a8 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 4 Nov 2018 16:56:29 +0100 Subject: [PATCH] Fix KeyError --- resources/lib/itemtypes/tvshows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/itemtypes/tvshows.py b/resources/lib/itemtypes/tvshows.py index a7603527..732ce3e0 100644 --- a/resources/lib/itemtypes/tvshows.py +++ b/resources/lib/itemtypes/tvshows.py @@ -293,7 +293,7 @@ class Season(ItemBase, TvShowMixin): LOG.error('Could not find parent tv show for season %s. ' 'Skipping season for now.', plex_id) return - parent_id = show['parent_id'] + parent_id = show['kodi_id'] kodi_id = self.kodi_db.add_season(parent_id, api.season_number()) self.artwork.modify_artwork(api.artwork(), kodi_id,