* Fix typos

* Indicate unicode dict

* Fix artistid

* Attempt to fix encoding
This commit is contained in:
angelblue05 2016-10-29 03:15:16 -05:00 committed by GitHub
parent ba22e26c06
commit 85d054f33a
4 changed files with 12 additions and 8 deletions

View file

@ -528,8 +528,11 @@ class Music(Items):
artist_full = emby.getItem(artist_eid)
self.add_updateArtist(artist_full)
artist_edb = emby_db.getItem_byId(artist_eid)
artistid = artist_edb[0]
finally:
artistid = artist_edb[0] if artist_edb else None
except Exception:
artistid = None
if artistid:
# Link song to artist
self.kodi_db.link_song_artist(artistid, songid, index, artist_name)