From a5fd548f6ed6ae180f209631ccc78d1f4ee2724e Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Sat, 30 Aug 2025 19:08:27 +0200 Subject: [PATCH] lastgenre: Comment _last_lookup why arg[0] is artist --- beetsplug/lastgenre/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 067fa80e7..0cfed23cf 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -394,7 +394,11 @@ class LastGenrePlugin(plugins.BeetsPlugin): # Filter forbidden genres if genre and len(args) >= 1: - artist = args[0] # First arg is always artist for our use cases + # For all current lastfm API calls, the first argument is always the artist: + # - get_album(artist, album) + # - get_artist(artist) + # - get_track(artist, title) + artist = args[0] filtered_genre = [ g for g in genre if not self._is_forbidden(g, artist) ]