mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 16:23:04 +01:00
Add a temporary log around whitelist setup
This commit is contained in:
parent
a49f12b110
commit
a717998587
1 changed files with 4 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
# Read the whitelist file if enabled.
|
||||
self.whitelist = set()
|
||||
wl_filename = self.config["whitelist"].get()
|
||||
self._log.debug(f"The whitelist config setting is '{wl_filename}'")
|
||||
if wl_filename in (True, ""): # Indicates the default whitelist.
|
||||
wl_filename = WHITELIST
|
||||
if wl_filename:
|
||||
|
|
@ -143,6 +144,9 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
line = line.decode("utf-8").strip().lower()
|
||||
if line and not line.startswith("#"):
|
||||
self.whitelist.add(line)
|
||||
self._log.debug(
|
||||
f"The self.whitelist property after file parsing is '{self.whitelist}'"
|
||||
)
|
||||
|
||||
# Read the genres tree for canonicalization if enabled.
|
||||
self.c14n_branches = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue