mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 19:42:42 +01:00
lastgenre: Simplify default tree loading
This commit is contained in:
parent
c54a54682f
commit
81d342b79f
1 changed files with 3 additions and 3 deletions
|
|
@ -132,10 +132,10 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
c14n_filename = self.config["canonical"].get()
|
||||
canonicalize = c14n_filename is not False
|
||||
# Default tree
|
||||
if c14n_filename in (True, ""):
|
||||
c14n_filename = C14N_TREE
|
||||
elif not canonicalize and self.config["prefer_specific"].get():
|
||||
if c14n_filename in (True, "") or (
|
||||
# prefer_specific requires a tree, load default tree
|
||||
not canonicalize and self.config["prefer_specific"].get()
|
||||
):
|
||||
c14n_filename = C14N_TREE
|
||||
# Read the tree
|
||||
if c14n_filename:
|
||||
|
|
|
|||
Loading…
Reference in a new issue