diff --git a/beetsplug/bpm.py b/beetsplug/bpm.py index 4e7b202ac..9166082e3 100644 --- a/beetsplug/bpm.py +++ b/beetsplug/bpm.py @@ -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): diff --git a/docs/plugins/bpm.rst b/docs/plugins/bpm.rst index f622ebc8d..012c3903c 100644 --- a/docs/plugins/bpm.rst +++ b/docs/plugins/bpm.rst @@ -22,6 +22,9 @@ for instance, with ``mpc`` you can do something like:: beet bpm $(mpc |head -1|tr -d "-") +If :ref:`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 ------ diff --git a/docs/reference/config.rst b/docs/reference/config.rst index b074edf5c..827b6855a 100644 --- a/docs/reference/config.rst +++ b/docs/reference/config.rst @@ -373,6 +373,8 @@ file that looks like this:: These options are available in this section: +.. _config-import-write: + write ~~~~~