lastgenre: Restore default whitelist

This commit is contained in:
Adrian Sampson 2014-04-27 13:54:32 -07:00
parent dfd9a4c397
commit d5dbaeff7a
2 changed files with 2 additions and 3 deletions

View file

@ -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,

View file

@ -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: