From dd34e34970f59be57b671d4d117ad4db3af8c2b5 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 15 Mar 2023 12:48:26 -0400 Subject: [PATCH] Replace primary artist in allmusic --- vrobbler/apps/music/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/music/models.py b/vrobbler/apps/music/models.py index 018d77f..70c8f6c 100644 --- a/vrobbler/apps/music/models.py +++ b/vrobbler/apps/music/models.py @@ -190,7 +190,7 @@ class Album(TimeStampedModel): def scrape_allmusic(self, force=False) -> None: if not self.allmusic_id or force: - slug = get_allmusic_slug(self.name, self.primary_artist.name) + slug = get_allmusic_slug(self.name, self.album_artist.name) if not slug: logger.info( f"No allmsuic link for {self} by {self.primary_artist}" @@ -278,6 +278,7 @@ class Album(TimeStampedModel): or self.cover_image == "default-image-replace-me" ): self.fetch_artwork() + self.fix_album_artist() self.scrape_theaudiodb() self.scrape_allmusic()