Fix album artist

This commit is contained in:
angelblue05 2016-09-26 18:22:08 -05:00
parent 02dee885e8
commit d7bc182557

View file

@ -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)