mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 05:23:05 +01:00
lastgenre: Restore default whitelist
This commit is contained in:
parent
dfd9a4c397
commit
d5dbaeff7a
2 changed files with 2 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
super(LastGenrePlugin, self).__init__()
|
||||
|
||||
self.config.add({
|
||||
'whitelist': None,
|
||||
'whitelist': WHITELIST,
|
||||
'min_weight': 10,
|
||||
'count': 1,
|
||||
'fallback': None,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
"""Tests for the 'lastgenre' plugin."""
|
||||
|
||||
import logging
|
||||
import os
|
||||
from _common import unittest
|
||||
from beetsplug import lastgenre
|
||||
from beets import config
|
||||
|
|
@ -30,7 +29,7 @@ class LastGenrePluginTest(unittest.TestCase):
|
|||
def _setup_config(self, whitelist=None, canonical=None, count=1):
|
||||
config['lastgenre']['canonical'] = canonical
|
||||
config['lastgenre']['count'] = count
|
||||
if whitelist == '':
|
||||
if not whitelist: # Either None or default ('').
|
||||
config['lastgenre']['whitelist'] = whitelist
|
||||
lastGenrePlugin.setup()
|
||||
if whitelist:
|
||||
|
|
|
|||
Loading…
Reference in a new issue