From 59337fb5d8b402852190c006d7c7c4e776a67385 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Wed, 26 Sep 2018 19:58:08 +0200 Subject: [PATCH] Fixed import issue with empty album artist --- api/funkwhale_api/music/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/funkwhale_api/music/tasks.py b/api/funkwhale_api/music/tasks.py index 8d2b276e0..b78cabaae 100644 --- a/api/funkwhale_api/music/tasks.py +++ b/api/funkwhale_api/music/tasks.py @@ -469,7 +469,7 @@ def get_track_from_import_metadata(data): models.Artist, query, defaults=defaults, sort_fields=["mbid", "fid"] )[0] - album_artist_name = data.get("album_artist", artist_name) + album_artist_name = data.get("album_artist") or artist_name if album_artist_name == artist_name: album_artist = artist else: