Skip to content

Commit

Permalink
Single place for whitelist/any log-label suffix
Browse files Browse the repository at this point in the history
Co-authored-by: Šarūnas Nejus <[email protected]>
  • Loading branch information
JOJ0 and snejus authored Jan 22, 2025
1 parent fddd836 commit e1606f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beetsplug/lastgenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ def _get_genre(

# 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
Expand Down

0 comments on commit e1606f2

Please sign in to comment.