mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +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
|
# Link album to artists
|
||||||
if MBartists:
|
if MBartists:
|
||||||
album_artists = MBitem['AlbumArtists']
|
album_artists = MBitem['AlbumArtists']
|
||||||
elif MBitem.get('ArtistItems'):
|
else:
|
||||||
album_artists = MBitem['ArtistItems']
|
album_artists = MBitem.get('ArtistItems', [])
|
||||||
|
|
||||||
for artist in album_artists:
|
for artist in album_artists:
|
||||||
cursor.execute("SELECT kodi_id FROM emby WHERE emby_id = ?", (artist['Id'],))
|
cursor.execute("SELECT kodi_id FROM emby WHERE emby_id = ?", (artist['Id'],))
|
||||||
|
|
Loading…
Reference in a new issue