Musicbrainz: Fix support for alias, tracks extra tags

This commit is contained in:
Šarūnas Nejus 2026-02-07 22:26:52 +00:00
parent 1271b711f7
commit aeee7b6da4
No known key found for this signature in database
3 changed files with 15 additions and 3 deletions

View file

@ -56,6 +56,8 @@ FIELDS_TO_MB_KEYS = {
"label": "label",
"media": "format",
"year": "date",
"tracks": "tracks",
"alias": "alias",
}

View file

@ -12,6 +12,8 @@ New features:
Bug fixes:
- :doc:`plugins/musicbrainz`: Fix search terms escaping. :bug:`6347`
- :doc:`plugins/musicbrainz`: Fix support for ``alias`` and ``tracks``
:conf:`plugins.musicbrainz:extra_tags`.
For packagers:

View file

@ -93,15 +93,23 @@ Default
This setting should improve the autotagger results if the metadata with the
given tags match the metadata returned by MusicBrainz.
Note that the only tags supported by this setting are: ``barcode``,
``catalognum``, ``country``, ``label``, ``media``, and ``year``.
Tags supported by this setting:
* ``alias`` (also search for release aliases matching the query)
* ``barcode``
* ``catalognum``
* ``country``
* ``label``
* ``media``
* ``tracks`` (number of tracks on the release)
* ``year``
Example:
.. code-block:: yaml
musicbrainz:
extra_tags: [barcode, catalognum, country, label, media, year]
extra_tags: [alias, barcode, catalognum, country, label, media, tracks, year]
.. conf:: genres
:default: no