mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 03:39:16 +02:00
Fix #788: fixed crashing import with empty album artist
This commit is contained in:
parent
48ce87d25f
commit
2a82367667
3 changed files with 99 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue