summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/include/tags.xml9
-rw-r--r--src/output/plugins/RoarOutputPlugin.cxx1
-rw-r--r--src/tag/Id3MusicBrainz.cxx1
-rw-r--r--src/tag/Names.c1
-rw-r--r--src/tag/Type.h1
5 files changed, 13 insertions, 0 deletions
diff --git a/doc/include/tags.xml b/doc/include/tags.xml
index b3554efb9..88a9e358e 100644
--- a/doc/include/tags.xml
+++ b/doc/include/tags.xml
@@ -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>
diff --git a/src/output/plugins/RoarOutputPlugin.cxx b/src/output/plugins/RoarOutputPlugin.cxx
index 6be6f2471..f6b1d88f5 100644
--- a/src/output/plugins/RoarOutputPlugin.cxx
+++ b/src/output/plugins/RoarOutputPlugin.cxx
@@ -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";
diff --git a/src/tag/Id3MusicBrainz.cxx b/src/tag/Id3MusicBrainz.cxx
index b1f747cf2..261ff4aca 100644
--- a/src/tag/Id3MusicBrainz.cxx
+++ b/src/tag/Id3MusicBrainz.cxx
@@ -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 }
};
diff --git a/src/tag/Names.c b/src/tag/Names.c
index 7f99877c4..5657e5f80 100644
--- a/src/tag/Names.c
+++ b/src/tag/Names.c
@@ -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",
};
diff --git a/src/tag/Type.h b/src/tag/Type.h
index 4aeb24dff..8e9d603b5 100644
--- a/src/tag/Type.h
+++ b/src/tag/Type.h
@@ -57,6 +57,7 @@ enum TagType
TAG_MUSICBRAINZ_ALBUMARTISTID,
TAG_MUSICBRAINZ_TRACKID,
TAG_MUSICBRAINZ_RELEASETRACKID,
+ TAG_MUSICBRAINZ_WORKID,
TAG_NUM_OF_ITEM_TYPES
};