diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 88b15580..479c0d9c 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1951,7 +1951,7 @@ class Music(Items): # Artist does not exist in emby database. artist = emby.getItem(parentId) # Item may not be an artist, verification necessary. - if artist['Type'] == "MusicArtist": + if artist.get('Type') == "MusicArtist": # Update with the parentId, for remove reference emby_db.addReference(parentId, parentId, "MusicArtist", "artist") emby_db.updateParentId(itemid, parentId)