From c57e5a1fb87ccb7a7b1695838bbf7d9529cfd451 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Fri, 28 Mar 2025 06:10:59 +0100 Subject: [PATCH] lastgenre: Tiny fix in early no-force return --- beetsplug/lastgenre/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index a8c8e7c04..1f2f01cb0 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -363,9 +363,10 @@ class LastGenrePlugin(plugins.BeetsPlugin): if genres and not self.config["force"]: # Without force pre-populated tags are returned as-is. + label = "keep any, no-force" if isinstance(obj, library.Item): - return obj.get("genre", with_album=False), "keep any, no-force" - return obj.get("genre"), "keep any, no-force" + return obj.get("genre", with_album=False), label + return obj.get("genre"), label if self.config["force"]: # Force doesn't keep any unless keep_existing is set.