From a7179985875bbaf2f91f473715ae199e25d6dcd4 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Wed, 8 Jan 2025 21:09:27 +0100 Subject: [PATCH] Add a temporary log around whitelist setup --- beetsplug/lastgenre/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 75336787c..8f9da09b9 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -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 = []