Debian Codegraph @

docs/plugins/mbsubmit.rst

raw
1 MusicBrainz Submit Plugin
2 =========================
3
4 The ``mbsubmit`` plugin provides extra prompt choices when an import session
5 fails to find a good enough match for a release. Additionally, it provides an
6 ``mbsubmit`` command that prints the tracks of the current album in a format
7 that is parseable by MusicBrainz's `track parser`_. The prompt choices are:
8
9 - Print the tracks to stdout in a format suitable for MusicBrainz's `track
10 parser`_.
11 - Open the program Picard_ with the unmatched folder as an input, allowing you
12 to start submitting the unmatched release to MusicBrainz with many input
13 fields already filled in, thanks to Picard reading the preexisting tags of the
14 files.
15
16 For the last option, Picard_ is assumed to be installed and available on the
17 machine including a ``picard`` executable. Picard developers list `download
18 options`_. `other GNU/Linux distributions`_ may distribute Picard via their
19 package manager as well.
20
21 .. _download options: https://picard.musicbrainz.org/downloads/
22
23 .. _other gnu/linux distributions: https://repology.org/project/picard-tagger/versions
24
25 .. _picard: https://picard.musicbrainz.org/
26
27 .. _track parser: https://wiki.musicbrainz.org/History:How_To_Parse_Track_Listings
28
29 Usage
30 -----
31
32 Enable the ``mbsubmit`` plugin in your configuration (see :ref:`using-plugins`)
33 and select one of the options mentioned above. Here the option ``Print tracks``
34 choice is demonstrated:
35
36 ::
37
38 No matching release found for 3 tracks.
39 For help, see: https://beets.readthedocs.org/en/latest/faq.html#nomatch
40 [U]se as-is, as Tracks, Group albums, Skip, Enter search, enter Id, aBort,
41 Print tracks, Open files with Picard? p
42 01. An Obscure Track - An Obscure Artist (3:37)
43 02. Another Obscure Track - An Obscure Artist (2:05)
44 03. The Third Track - Another Obscure Artist (3:02)
45
46 No matching release found for 3 tracks.
47 For help, see: https://beets.readthedocs.org/en/latest/faq.html#nomatch
48 [U]se as-is, as Tracks, Group albums, Skip, Enter search, enter Id, aBort,
49 Print tracks?
50
51 You can also run ``beet mbsubmit QUERY`` to print the track information for any
52 album:
53
54 ::
55
56 $ beet mbsubmit album:"An Obscure Album"
57 01. An Obscure Track - An Obscure Artist (3:37)
58 02. Another Obscure Track - An Obscure Artist (2:05)
59 03. The Third Track - Another Obscure Artist (3:02)
60
61 As MusicBrainz currently does not support submitting albums programmatically,
62 the recommended workflow is to copy the output of the ``Print tracks`` choice
63 and paste it into the parser that can be found by clicking on the "Track Parser"
64 button on MusicBrainz "Tracklist" tab.
65
66 Configuration
67 -------------
68
69 To configure the plugin, make a ``mbsubmit:`` section in your configuration
70 file. The following options are available:
71
72 - **format**: The format used for printing the tracks, defined using the same
73 template syntax as beets’ :doc:`path formats </reference/pathformat>`.
74 Default: ``$track. $title - $artist ($length)``.
75 - **threshold**: The minimum strength of the autotagger recommendation that will
76 cause the ``Print tracks`` choice to be displayed on the prompt. Default:
77 ``medium`` (causing the choice to be displayed for all albums that have a
78 recommendation of medium strength or lower). Valid values: ``none``, ``low``,
79 ``medium``, ``strong``.
80 - **picard_path**: The path to the ``picard`` executable. Could be an absolute
81 path, and if not, ``$PATH`` is consulted. The default value is simply
82 ``picard``. Windows users will have to find and specify the absolute path to
83 their ``picard.exe``. That would probably be: ``C:\Program Files\MusicBrainz
84 Picard\picard.exe``.
85
86 Please note that some values of the ``threshold`` configuration option might
87 require other ``beets`` command line switches to be enabled in order to work as
88 intended. In particular, setting a threshold of ``strong`` will only display the
89 prompt if ``timid`` mode is enabled. You can find more information about how the
90 recommendation system works at :ref:`match-config`.