lastgenre: Tiny code style fix in _get_genre

This commit is contained in:
J0J0 Todos 2026-02-07 20:18:41 +01:00
parent 95f1c67dae
commit ea92ecc400

View file

@ -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():