lyrics: Connect force option to CLI (#1150)

This commit is contained in:
Adrian Sampson 2014-12-18 04:03:15 +00:00
parent 4b575d79d3
commit 20db9bb1a6
2 changed files with 6 additions and 3 deletions

View file

@ -443,8 +443,10 @@ class LyricsPlugin(BeetsPlugin):
# import_write config value.
write = config['import']['write'].get(bool)
for item in lib.items(ui.decargs(args)):
self.fetch_item_lyrics(lib, logging.INFO, item, write,
opts.force_refetch)
self.fetch_item_lyrics(
lib, logging.INFO, item, write,
opts.force_refetch or self.config['force'],
)
if opts.printlyr and item.lyrics:
ui.print_(item.lyrics)

View file

@ -18,9 +18,10 @@ New:
database changes. Thanks again to xsteadfastx. :bug:`1120`
* Add a warning when importing a directory that contains no music. :bug:`1116`
:bug:`1127`
* The :doc:`/plugins/zero` can remove embedded images. :bug:`1129` :bug:`1100`
* :doc:`/plugins/zero`: Can now remove embedded images. :bug:`1129` :bug:`1100`
* The :ref:`config-cmd` command can now be used to edit the configuration even
when it has syntax errors. :bug:`1123` :bug:`1128`
* :doc:`/plugins/lyrics`: Added a new ``force`` config option. :bug:`1150`
Fixed: