thumbnails: add "auto" config option

default: True
This commit is contained in:
Bruno Cauet 2015-01-28 18:02:54 +01:00
parent e8370044c9
commit a39ab5163f
2 changed files with 3 additions and 1 deletions

View file

@ -111,3 +111,4 @@ match:
thumbnails:
force: no
auto: yes

View file

@ -45,11 +45,12 @@ class ThumbnailsPlugin(BeetsPlugin):
def __init__(self):
super(ThumbnailsPlugin, self).__init__()
self.config.add({
'auto': True,
'force': False,
})
self.write_metadata = None
if self._check_local_ok():
if self.config['auto'] and self._check_local_ok():
self.register_listener('album_imported', self.imported)
def commands(self):