mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
Update _setup_config
Give an empty string to obtain default whitelist, None for no whitelist or a stringlist for a custom one.
This commit is contained in:
parent
0b3c5ddbe0
commit
0613cb7d13
1 changed files with 3 additions and 3 deletions
|
|
@ -27,11 +27,11 @@ lastGenrePlugin = lastgenre.LastGenrePlugin()
|
|||
|
||||
class LastGenrePluginTest(unittest.TestCase):
|
||||
|
||||
def _setup_config(self, whitelist=set(), canonical=None, count=1):
|
||||
def _setup_config(self, whitelist=None, canonical=None, count=1):
|
||||
config['lastgenre']['canonical'] = canonical
|
||||
config['lastgenre']['count'] = count
|
||||
config['lastgenre']['whitelist'] = \
|
||||
os.path.join(os.path.dirname(lastgenre.__file__), 'genres.txt')
|
||||
if whitelist == '':
|
||||
config['lastgenre']['whitelist'] = whitelist
|
||||
lastGenrePlugin.setup()
|
||||
if whitelist:
|
||||
lastGenrePlugin.whitelist = whitelist
|
||||
|
|
|
|||
Loading…
Reference in a new issue