| 1 |
MusicBrainz Pseudo-Release Plugin |
| 2 |
================================= |
| 3 |
|
| 4 |
The ``mbpseudo`` plugin can be used *instead of* the ``musicbrainz`` plugin to |
| 5 |
search for MusicBrainz pseudo-releases_ during the import process, which are |
| 6 |
added to the normal candidates from the MusicBrainz search. |
| 7 |
|
| 8 |
.. _pseudo-releases: https://musicbrainz.org/doc/Style/Specific_types_of_releases/Pseudo-Releases |
| 9 |
|
| 10 |
This is useful for releases whose title and track titles are written with a |
| 11 |
script_ that can be translated or transliterated into a different one. |
| 12 |
|
| 13 |
.. _script: https://en.wikipedia.org/wiki/ISO_15924 |
| 14 |
|
| 15 |
Pseudo-releases will only be included if the initial search in MusicBrainz |
| 16 |
returns releases whose script is *not* desired and whose relationships include |
| 17 |
pseudo-releases with desired scripts. |
| 18 |
|
| 19 |
Configuration |
| 20 |
------------- |
| 21 |
|
| 22 |
Since this plugin first searches for official releases from MusicBrainz, all |
| 23 |
options from the ``musicbrainz`` plugin's :ref:`musicbrainz-config` are |
| 24 |
supported, but they must be specified under ``mbpseudo`` in the configuration |
| 25 |
file. Additionally, the configuration expects an array of scripts that are |
| 26 |
desired for the pseudo-releases. For ``artist`` in particular, keep in mind that |
| 27 |
even pseudo-releases might specify it with the original script, so you should |
| 28 |
also configure import :ref:`languages` to give artist aliases more priority. |
| 29 |
Therefore, the minimum configuration for this plugin looks like this: |
| 30 |
|
| 31 |
.. code-block:: yaml |
| 32 |
|
| 33 |
plugins: mbpseudo # remove musicbrainz |
| 34 |
|
| 35 |
import: |
| 36 |
languages: en |
| 37 |
|
| 38 |
mbpseudo: |
| 39 |
scripts: |
| 40 |
- Latn |
| 41 |
|
| 42 |
Note that the ``search_limit`` configuration applies to the initial search for |
| 43 |
official releases, and that the ``data_source`` in the database will be |
| 44 |
"MusicBrainz". Nevertheless, ``data_source_mismatch_penalty`` must also be |
| 45 |
specified under ``mbpseudo`` if desired (see also |
| 46 |
:ref:`metadata-source-plugin-configuration`). An example with multiple data |
| 47 |
sources may look like this: |
| 48 |
|
| 49 |
.. code-block:: yaml |
| 50 |
|
| 51 |
plugins: mbpseudo deezer |
| 52 |
|
| 53 |
import: |
| 54 |
languages: en |
| 55 |
|
| 56 |
mbpseudo: |
| 57 |
data_source_mismatch_penalty: 0 |
| 58 |
scripts: |
| 59 |
- Latn |
| 60 |
|
| 61 |
deezer: |
| 62 |
data_source_mismatch_penalty: 0.2 |
| 63 |
|
| 64 |
By default, the data from the pseudo-release will be used to create a proposal |
| 65 |
that is independent from the official release and sets all properties in its |
| 66 |
metadata. It's possible to change the configuration so that some information |
| 67 |
from the pseudo-release is instead added as custom tags, keeping the metadata |
| 68 |
from the official release: |
| 69 |
|
| 70 |
.. code-block:: yaml |
| 71 |
|
| 72 |
mbpseudo: |
| 73 |
# other config not shown |
| 74 |
custom_tags_only: yes |
| 75 |
|
| 76 |
The default custom tags with this configuration are specified as mappings where |
| 77 |
the keys define the tag names and the values define the pseudo-release property |
| 78 |
that will be used to set the tag's value: |
| 79 |
|
| 80 |
.. code-block:: yaml |
| 81 |
|
| 82 |
mbpseudo: |
| 83 |
album_custom_tags: |
| 84 |
album_transl: album |
| 85 |
album_artist_transl: artist |
| 86 |
track_custom_tags: |
| 87 |
title_transl: title |
| 88 |
artist_transl: artist |
| 89 |
|
| 90 |
Note that the information for each set of custom tags corresponds to different |
| 91 |
metadata levels (album or track level), which is why ``artist`` appears twice |
| 92 |
even though it effectively references album artist and track artist |
| 93 |
respectively. |
| 94 |
|
| 95 |
If you want to modify any mapping under ``album_custom_tags`` or |
| 96 |
``track_custom_tags``, you must specify *everything* for that set of tags in |
| 97 |
your configuration file because any customization replaces the whole dictionary |
| 98 |
of mappings for that level. |
| 99 |
|
| 100 |
.. note:: |
| 101 |
|
| 102 |
These custom tags are also added to the music files, not only to the |
| 103 |
database. |