mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Remove write option from bpm and use import.write
This commit is contained in:
parent
6935b6deff
commit
2d5c68cec9
3 changed files with 7 additions and 5 deletions
|
|
@ -53,8 +53,7 @@ class BPMPlugin(BeetsPlugin):
|
|||
super(BPMPlugin, self).__init__()
|
||||
self.config.add({
|
||||
u'max_strokes': 3,
|
||||
u'overwrite': True,
|
||||
u'write': False
|
||||
u'overwrite': True
|
||||
})
|
||||
|
||||
def commands(self):
|
||||
|
|
@ -66,7 +65,7 @@ class BPMPlugin(BeetsPlugin):
|
|||
|
||||
def command(self, lib, opts, args):
|
||||
items = lib.items(ui.decargs(args))
|
||||
write = self.config['write'].get(bool)
|
||||
write = ui.should_write()
|
||||
self.get_bpm(items, write)
|
||||
|
||||
def get_bpm(self, items, write=False):
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ for instance, with ``mpc`` you can do something like::
|
|||
|
||||
beet bpm $(mpc |head -1|tr -d "-")
|
||||
|
||||
If :ref:`import.write <config-import-write>` is ``yes``, the song's tags are
|
||||
written to disk.
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
|
|
@ -33,8 +36,6 @@ The available options are:
|
|||
Default: 3.
|
||||
- **overwrite**: Overwrite the track's existing BPM.
|
||||
Default: ``yes``.
|
||||
- **write**: Write the song's tags to file when the BPM is updated.
|
||||
Default: ``no``.
|
||||
|
||||
Credit
|
||||
------
|
||||
|
|
|
|||
|
|
@ -373,6 +373,8 @@ file that looks like this::
|
|||
|
||||
These options are available in this section:
|
||||
|
||||
.. _config-import-write:
|
||||
|
||||
write
|
||||
~~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue