From 9bba782e9ceb30e844b42f75698468487cbcb643 Mon Sep 17 00:00:00 2001 From: Diego Moreda Date: Sat, 2 Jan 2016 13:32:52 +0100 Subject: [PATCH] mbsubmit: final style fixes (closes #1779) --- beetsplug/mbsubmit.py | 4 ++-- docs/plugins/mbsubmit.rst | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/beetsplug/mbsubmit.py b/beetsplug/mbsubmit.py index 7faedff44..947e4cfc6 100644 --- a/beetsplug/mbsubmit.py +++ b/beetsplug/mbsubmit.py @@ -37,7 +37,7 @@ class MBSubmitPlugin(BeetsPlugin): super(MBSubmitPlugin, self).__init__() self.config.add({ - 'mb_format': '$track. $title - $artist ($length)', + 'format': '$track. $title - $artist ($length)', 'threshold': 'medium', }) @@ -58,4 +58,4 @@ class MBSubmitPlugin(BeetsPlugin): def print_tracks(self, session, task): for i in task.items: - print_data(None, i, self.config['mb_format'].get()) + print_data(None, i, self.config['format'].get()) diff --git a/docs/plugins/mbsubmit.rst b/docs/plugins/mbsubmit.rst index 9312eb785..5c13375ba 100644 --- a/docs/plugins/mbsubmit.rst +++ b/docs/plugins/mbsubmit.rst @@ -30,7 +30,7 @@ strong recommendations are found for the album:: As MusicBrainz currently does not support submitting albums programmatically, the recommended workflow is to copy the output of the ``Print tracks`` choice and paste it into the parser that can be found by clicking on the -"`Track Parser`" button on MusicBrainz "`Tracklist`" tab. +"Track Parser" button on MusicBrainz "Tracklist" tab. Configuration ------------- @@ -38,7 +38,7 @@ Configuration To configure the plugin, make a ``mbsubmit:`` section in your configuration file. The following options are available: -- **mb_format**: The format used for printing the tracks, defined using the +- **format**: The format used for printing the tracks, defined using the same template syntax as beets’ :doc:`path formats `. Default: ``$track. $title - $artist ($length)``. - **threshold**: The minimum strength of the autotagger recommendation that @@ -51,4 +51,4 @@ Please note that some values of the ``threshold`` configuration option might require other ``beets`` command line switches to be enabled in order to work as intended. In particular, setting a threshold of ``strong`` will only display the prompt if ``timid`` mode is enabled. You can find more information about -how the recommendation system works on :ref:`match-config`. +how the recommendation system works at :ref:`match-config`.