Parcourir la source

Bit of a hack to fix artist lookups

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

+ 2 - 1
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