mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
lastgenre: Tiny fix in early no-force return
This commit is contained in:
parent
edd366e766
commit
c57e5a1fb8
1 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue