lastgenre: Comment _last_lookup why arg[0] is artist

This commit is contained in:
J0J0 Todos 2025-08-30 19:08:27 +02:00
parent 50a6f8f0c5
commit a5fd548f6e

View file

@ -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)
]