Actually fix the VA bug

This commit is contained in:
2023-03-27 20:19:03 -04:00
parent 3e2a9d2183
commit 1ee8fc589a
3 changed files with 29 additions and 23 deletions

View File

@ -180,13 +180,11 @@ class Album(TimeStampedModel):
from music.utils import get_or_create_various_artists
multiple_artists = self.artists.count() > 1
if not self.album_artist:
if multiple_artists:
self.album_artist = get_or_create_various_artists()
else:
self.album_artist = self.artists.first()
self.save(update_fields=["album_artist"])
if multiple_artists:
self.album_artist = get_or_create_various_artists()
else:
self.album_artist = self.artists.first()
self.save(update_fields=["album_artist"])
def scrape_allmusic(self, force=False) -> None:
if not self.allmusic_id or force: