mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix albumartist
This commit is contained in:
parent
d03d24d078
commit
9f4584d83f
1 changed files with 6 additions and 1 deletions
|
@ -332,7 +332,12 @@ class WriteKodiMusicDB():
|
||||||
cursor.execute(query, (albumid, artists, genre, year, dateadded))
|
cursor.execute(query, (albumid, artists, genre, year, dateadded))
|
||||||
finally:
|
finally:
|
||||||
# Link album to artists
|
# Link album to artists
|
||||||
for artist in MBitem['ArtistItems']:
|
if MBitem['AlbumArtists']:
|
||||||
|
album_artists = MBitem['AlbumArtists']
|
||||||
|
else:
|
||||||
|
album_artists = MBitem['ArtistItems']
|
||||||
|
|
||||||
|
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'],))
|
||||||
try:
|
try:
|
||||||
artistid = cursor.fetchone()[0]
|
artistid = cursor.fetchone()[0]
|
||||||
|
|
Loading…
Reference in a new issue