From b5d6bea0d139d40ff12a029718a3a4202d27f7b9 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 20 Mar 2023 16:34:35 -0400 Subject: [PATCH] Fix bug in looking up albums by artists --- vrobbler/apps/music/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/music/utils.py b/vrobbler/apps/music/utils.py index 7e5a8b4..86e929a 100644 --- a/vrobbler/apps/music/utils.py +++ b/vrobbler/apps/music/utils.py @@ -51,7 +51,7 @@ def get_or_create_album( logger.debug(f"Looking up album {name} and mbid: {mbid}") - album = Album.objects.filter(album_artist=artist, name=name).first() + album = Album.objects.filter(artists__in=[artist], name=name).first() if not album and name: mbid = mbid or album_dict["mb_id"]