Single place for whitelist/any log-label suffix

Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
J0J0 Todos 2025-01-22 18:06:29 +01:00 committed by J0J0 Todos
parent 87d9f57e24
commit 86e1bd47a4

View file

@ -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