lastgenre: Also log which whitelist file is loading

This commit is contained in:
J0J0 Todos 2025-09-07 22:50:05 +02:00
parent 6601cbf8c0
commit d2caed3971

View file

@ -124,6 +124,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
if wl_filename in (True, "", None): # Indicates the default whitelist.
wl_filename = WHITELIST
if wl_filename:
self._log.debug("Loading whitelist {}", wl_filename)
text = Path(wl_filename).expanduser().read_text(encoding="utf-8")
for line in text.splitlines():
if (line := line.strip().lower()) and not line.startswith("#"):