From 9efe728f47a439cfdb92c35707ed8771c3298a50 Mon Sep 17 00:00:00 2001 From: Henry Date: Sat, 27 Sep 2025 14:49:56 -0700 Subject: [PATCH] type checking, tuple unpacking fix in various artists --- beetsplug/discogs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 0d796e7b7..ec8638589 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -306,7 +306,9 @@ class DiscogsPlugin(MetadataSourcePlugin): return media, albumtype - def get_artist(self, artists, use_anv=False) -> tuple[str, str | None]: + def get_artist( + self, artists: Iterable[dict[str | int, str]], use_anv: bool = False + ) -> tuple[str, str | None]: """Iterates through a discogs result, fetching data if the artist anv is to be used, maps that to the name. Calls the parent class get_artist method.""" @@ -404,7 +406,9 @@ class DiscogsPlugin(MetadataSourcePlugin): # Additional cleanups # (various artists name, catalog number, media, disambiguation). if va: - album_artist, artist_credit = config["va_name"].as_str() + va_name = config["va_name"].as_str() + album_artist = va_name + artist_credit = va_name if catalogno == "none": catalogno = None # Explicitly set the `media` for the tracks, since it is expected by