mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
lastgenre: Comment _last_lookup why arg[0] is artist
This commit is contained in:
parent
50a6f8f0c5
commit
a5fd548f6e
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue