mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix potential local reference error
This commit is contained in:
parent
c6762782ed
commit
c3e70602c5
1 changed files with 2 additions and 2 deletions
|
@ -222,8 +222,8 @@ class WriteKodiMusicDB():
|
|||
# Link album to artists
|
||||
if MBartists:
|
||||
album_artists = MBitem['AlbumArtists']
|
||||
elif MBitem.get('ArtistItems'):
|
||||
album_artists = MBitem['ArtistItems']
|
||||
else:
|
||||
album_artists = MBitem.get('ArtistItems', [])
|
||||
|
||||
for artist in album_artists:
|
||||
cursor.execute("SELECT kodi_id FROM emby WHERE emby_id = ?", (artist['Id'],))
|
||||
|
|
Loading…
Reference in a new issue