Fix #788: fixed crashing import with empty album artist

This commit is contained in:
Eliot Berriot 2019-04-05 15:41:28 +02:00
parent 48ce87d25f
commit 2a82367667
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 99 additions and 2 deletions

View file

@ -466,7 +466,7 @@ def _get_track(data):
models.Artist, query, defaults=defaults, sort_fields=["mbid", "fid"]
)[0]
album_artists = getter(data, "album", "artists", default=artists)
album_artists = getter(data, "album", "artists", default=artists) or artists
album_artist = album_artists[0]
album_artist_name = album_artist.get("name")
if album_artist_name == artist_name: