mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 14:03:12 +01:00
Single place for whitelist/any log-label suffix
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
parent
87d9f57e24
commit
86e1bd47a4
1 changed files with 3 additions and 0 deletions
|
|
@ -404,6 +404,9 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
|
||||
# Return with a combined or freshly fetched genre list.
|
||||
if new_genres:
|
||||
suffix = "whitelist" if self.whitelist else "any"
|
||||
label += f", {suffix}"
|
||||
|
||||
if keep_genres:
|
||||
label = f"keep + {label}"
|
||||
return self._combine_genres(keep_genres, new_genres), label
|
||||
|
|
|
|||
Loading…
Reference in a new issue