Skip to content

Commit

Permalink
Add a temporary log around whitelist setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Jan 8, 2025
1 parent d8ce25a commit 2025a56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beetsplug/lastgenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def setup(self):
# 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:
Expand All @@ -143,6 +144,9 @@ def setup(self):
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 = []
Expand Down

0 comments on commit 2025a56

Please sign in to comment.