mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
lastgenre: canonical/whitelist setting None load default files
This commit is contained in:
parent
6bc30eaf18
commit
6601cbf8c0
1 changed files with 2 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
"""
|
||||
whitelist = set()
|
||||
wl_filename = self.config["whitelist"].get()
|
||||
if wl_filename in (True, ""): # Indicates the default whitelist.
|
||||
if wl_filename in (True, "", None): # Indicates the default whitelist.
|
||||
wl_filename = WHITELIST
|
||||
if wl_filename:
|
||||
text = Path(wl_filename).expanduser().read_text(encoding="utf-8")
|
||||
|
|
@ -141,7 +141,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
c14n_filename = self.config["canonical"].get()
|
||||
canonicalize = c14n_filename is not False
|
||||
# Default tree
|
||||
if c14n_filename in (True, "") or (
|
||||
if c14n_filename in (True, "", None) or (
|
||||
# prefer_specific requires a tree, load default tree
|
||||
not canonicalize and self.config["prefer_specific"].get()
|
||||
):
|
||||
|
|
|
|||
Loading…
Reference in a new issue