Add basic support for MUSICBRAINZ_WORKID tag

This commit is contained in:
loujine 2017-12-30 19:05:21 +00:00
parent 78c73fb9e7
commit 42959982a9
5 changed files with 13 additions and 0 deletions

View File

@ -153,4 +153,13 @@
database.
</para>
</listitem>
<listitem>
<para>
<varname>musicbrainz_workid</varname>: the work id in the
<ulink
url="https://picard.musicbrainz.org/docs/mappings/">MusicBrainz</ulink>
database.
</para>
</listitem>
</itemizedlist>

View File

@ -280,6 +280,7 @@ roar_tag_convert(TagType type, bool *is_uuid)
case TAG_MUSICBRAINZ_ALBUMARTISTID:
case TAG_MUSICBRAINZ_TRACKID:
case TAG_MUSICBRAINZ_RELEASETRACKID:
case TAG_MUSICBRAINZ_WORKID:
*is_uuid = true;
return "HASH";

View File

@ -30,5 +30,6 @@ const struct tag_table musicbrainz_txxx_tags[] = {
{ "MusicBrainz Track Id", TAG_MUSICBRAINZ_TRACKID },
{ "MusicBrainz Release Track Id",
TAG_MUSICBRAINZ_RELEASETRACKID },
{ "MusicBrainz Work Id", TAG_MUSICBRAINZ_WORKID },
{ nullptr, TAG_NUM_OF_ITEM_TYPES }
};

View File

@ -44,4 +44,5 @@ const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
[TAG_MUSICBRAINZ_ALBUMARTISTID] = "MUSICBRAINZ_ALBUMARTISTID",
[TAG_MUSICBRAINZ_TRACKID] = "MUSICBRAINZ_TRACKID",
[TAG_MUSICBRAINZ_RELEASETRACKID] = "MUSICBRAINZ_RELEASETRACKID",
[TAG_MUSICBRAINZ_WORKID] = "MUSICBRAINZ_WORKID",
};

View File

@ -57,6 +57,7 @@ enum TagType
TAG_MUSICBRAINZ_ALBUMARTISTID,
TAG_MUSICBRAINZ_TRACKID,
TAG_MUSICBRAINZ_RELEASETRACKID,
TAG_MUSICBRAINZ_WORKID,
TAG_NUM_OF_ITEM_TYPES
};