Parcourir la source

Fix bug in looking up albums by artists

Colin Powell il y a 2 ans
Parent
commit
b5d6bea0d1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      vrobbler/apps/music/utils.py

+ 1 - 1
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"]