From d7bc1825571e6356e715027d18464bdd9625a4e3 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 26 Sep 2016 18:22:08 -0500 Subject: [PATCH] Fix album artist --- resources/lib/itemtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)