mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 14:56:02 +01:00
Final lastgenre plugin linting
This commit is contained in:
parent
6cd000750a
commit
37fc1b6b7f
1 changed files with 2 additions and 4 deletions
|
|
@ -212,8 +212,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
return [p[1] for p in depth_tag_pairs]
|
||||
|
||||
def _resolve_genres(self, tags):
|
||||
"""Given a list of genre strings, filters, sorts and canonicalizes.
|
||||
"""
|
||||
"""Given a list of genre strings, filters, sorts and canonicalizes."""
|
||||
self._log.debug(
|
||||
f"_resolve_genres received: {tags}",
|
||||
)
|
||||
|
|
@ -276,8 +275,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
return fetched
|
||||
|
||||
def _is_allowed(self, genre):
|
||||
"""Returns True if genre in whitelist or whitelist disabled.
|
||||
"""
|
||||
"""Returns True if genre in whitelist or whitelist disabled."""
|
||||
allowed = False
|
||||
if genre is None:
|
||||
allowed = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue