Explorar el Código

Fix bug in looking up albums by artists

Colin Powell hace 2 años
padre
commit
b5d6bea0d1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"]