mirror of
https://github.com/beetbox/beets.git
synced 2026-02-08 08:25:23 +01:00
lastgenre: Tiny code style fix in _get_genre
This commit is contained in:
parent
95f1c67dae
commit
ea92ecc400
1 changed files with 6 additions and 7 deletions
|
|
@ -358,13 +358,12 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
if obj.genre and self.config["keep_existing"]:
|
||||
if not self.whitelist or self._is_valid(obj.genre.lower()):
|
||||
return obj.genre, "original fallback"
|
||||
else:
|
||||
# If the original genre doesn't match a whitelisted genre, check
|
||||
# if we can canonicalize it to find a matching, whitelisted genre!
|
||||
if result := _try_resolve_stage(
|
||||
"original fallback", keep_genres, []
|
||||
):
|
||||
return result
|
||||
# If the original genre doesn't match a whitelisted genre, check
|
||||
# if we can canonicalize it to find a matching, whitelisted genre!
|
||||
if result := _try_resolve_stage(
|
||||
"original fallback", keep_genres, []
|
||||
):
|
||||
return result
|
||||
|
||||
# Return fallback string.
|
||||
if fallback := self.config["fallback"].get():
|
||||
|
|
|
|||
Loading…
Reference in a new issue