From 69e65f5ca638a4cb6742d055c5a8663a1298a940 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 25 Nov 2018 20:28:22 +0100 Subject: [PATCH] Fix KeyError --- resources/lib/itemtypes/music.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/itemtypes/music.py b/resources/lib/itemtypes/music.py index 62425abf..1fcac64c 100644 --- a/resources/lib/itemtypes/music.py +++ b/resources/lib/itemtypes/music.py @@ -91,8 +91,8 @@ class MusicMixin(object): # Remove the album self.remove_album(db_item['kodi_id']) # Show verification - if (not self.plexdb.artist_has_albums(db_item['album_id']) and - not self.plexdb.artist_has_songs(db_item['album_id'])): + if (not self.plexdb.artist_has_albums(db_item['kodi_id']) and + not self.plexdb.artist_has_songs(db_item['kodi_id'])): # There's no other season or episode left, delete the show self.remove_artist(db_item['parent_id']) self.plexdb.remove(db_item['artist_id'], v.KODI_TYPE_ARTIST)