We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 484f2bf commit 051e8e6Copy full SHA for 051e8e6
beetsplug/lastgenre/__init__.py
@@ -553,14 +553,7 @@ def _try_resolve_stage(
553
554
# Nothing found, leave original if configured and valid.
555
if genres and self.config["keep_existing"].get():
556
- if isinstance(obj, library.Item):
557
- # For track items, use track artist (important for compilations).
558
- artist = getattr(obj, "artist", None)
559
- else:
560
- # For albums, prefer albumartist, fall back to artist.
561
- artist = getattr(obj, "albumartist", None) or getattr(
562
- obj, "artist", None
563
- )
+ artist = self._artist_for_filter(obj)
564
if valid_genres := self._filter_valid(genres, artist=artist):
565
return valid_genres, "original fallback"
566
# If the original genre doesn't match a whitelisted genre, check
0 commit comments