From ca8451cdbce482f09566099df0993dd9ebe81f11 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 11 Jun 2019 09:38:10 +0200 Subject: [PATCH] tag/Type: add tag "Work" Closes https://github.com/MusicPlayerDaemon/MPD/issues/577 --- NEWS | 2 +- doc/protocol.rst | 2 ++ src/tag/Names.c | 1 + src/tag/Type.h | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 99faf5918..5dfb6ca55 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,7 @@ ver 0.22 (not yet released) - "findadd"/"searchadd"/"searchaddpl" support the "sort" and "window" parameters * tags - - new tag "Grouping" (for ID3 "TIT1") + - new tags "Grouping" (for ID3 "TIT1") and "Work" * input - ffmpeg: allow partial reads * archive diff --git a/doc/protocol.rst b/doc/protocol.rst index 854dcd0c8..c4ee57bcd 100644 --- a/doc/protocol.rst +++ b/doc/protocol.rst @@ -274,6 +274,8 @@ The following tags are supported by :program:`MPD`: * **date**: the song's release date. This is usually a 4-digit year. * **composer**: the artist who composed the song. * **performer**: the artist who performed the song. +* **work**: `"a work is a distinct intellectual or artistic creation, + which can be expressed in the form of one or more audio recordings" `_ * **grouping**: "used if the sound belongs to a larger category of sounds/music" (`from the IDv2.4.0 TIT1 description `_). diff --git a/src/tag/Names.c b/src/tag/Names.c index a3a575ea6..d619818c2 100644 --- a/src/tag/Names.c +++ b/src/tag/Names.c @@ -34,6 +34,7 @@ const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = { [TAG_ORIGINAL_DATE] = "OriginalDate", [TAG_COMPOSER] = "Composer", [TAG_PERFORMER] = "Performer", + [TAG_WORK] = "Work", [TAG_GROUPING] = "Grouping", [TAG_COMMENT] = "Comment", [TAG_DISC] = "Disc", diff --git a/src/tag/Type.h b/src/tag/Type.h index 0a7b98e7b..0b4d90199 100644 --- a/src/tag/Type.h +++ b/src/tag/Type.h @@ -49,6 +49,7 @@ enum TagType TAG_ORIGINAL_DATE, TAG_COMPOSER, TAG_PERFORMER, + TAG_WORK, TAG_GROUPING, TAG_COMMENT, TAG_DISC,