mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 22:12:53 +01:00
lastgenre: Also log which whitelist file is loading
This commit is contained in:
parent
6601cbf8c0
commit
d2caed3971
1 changed files with 1 additions and 0 deletions
|
|
@ -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("#"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue