Add support of TAG_MUSICBRAINZ_RELEASEGROUPID

Closes #1767
This commit is contained in:
jcorporation 2023-06-02 21:54:04 +02:00
parent 9c19368fc7
commit 082f72dd20
5 changed files with 7 additions and 0 deletions

View File

@ -315,6 +315,7 @@ The following tags are supported by :program:`MPD`:
* **musicbrainz_albumid**: the album id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_albumartistid**: the album artist id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_trackid**: the track id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_releasegroupid**: the release group id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_releasetrackid**: the release track id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_workid**: the work id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.

View File

@ -182,6 +182,8 @@ static constexpr struct {
#endif
#if LIBMPDCLIENT_CHECK_VERSION(2,21,0)
{ TAG_MOOD, MPD_TAG_MOOD },
{ TAG_MUSICBRAINZ_RELEASEGROUPID,
MPD_TAG_MUSICBRAINZ_RELEASEGROUPID },
#endif
{ TAG_NUM_OF_ITEM_TYPES, MPD_TAG_COUNT }
};

View File

@ -15,5 +15,7 @@ const struct tag_table musicbrainz_txxx_tags[] = {
{ "MusicBrainz Release Track Id",
TAG_MUSICBRAINZ_RELEASETRACKID },
{ "MusicBrainz Work Id", TAG_MUSICBRAINZ_WORKID },
{ "MusicBrainz Release Group Id",
TAG_MUSICBRAINZ_RELEASEGROUPID },
{ nullptr, TAG_NUM_OF_ITEM_TYPES }
};

View File

@ -42,6 +42,7 @@ static constexpr struct tag_table tag_item_names_init[] = {
{"MUSICBRAINZ_TRACKID", TAG_MUSICBRAINZ_TRACKID},
{"MUSICBRAINZ_RELEASETRACKID", TAG_MUSICBRAINZ_RELEASETRACKID},
{"MUSICBRAINZ_WORKID", TAG_MUSICBRAINZ_WORKID},
{"MUSICBRAINZ_RELEASEGROUPID", TAG_MUSICBRAINZ_RELEASEGROUPID},
};
/**

View File

@ -43,6 +43,7 @@ enum TagType : uint8_t {
TAG_MUSICBRAINZ_TRACKID,
TAG_MUSICBRAINZ_RELEASETRACKID,
TAG_MUSICBRAINZ_WORKID,
TAG_MUSICBRAINZ_RELEASEGROUPID,
TAG_NUM_OF_ITEM_TYPES
};