From a7bf405af2b257bf042b94573425c7c06d8e28dc Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 27 Mar 2023 23:49:00 -0400 Subject: [PATCH] Bit of a hack to fix artist lookups --- vrobbler/apps/music/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/music/utils.py b/vrobbler/apps/music/utils.py index c10cd8a..5422cba 100644 --- a/vrobbler/apps/music/utils.py +++ b/vrobbler/apps/music/utils.py @@ -71,13 +71,14 @@ def get_or_create_album( ] ) album.artists.add(artist) + album.fix_album_artist() album.fetch_artwork() album.scrape_allmusic() - album.fix_album_artist() if not album: logger.warn(f"No album found for {name} and {mbid}") + album.fix_album_artist() return album