aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 20:02:55 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 20:02:55 +0100
commit30e288067529080b9d8ac124af27b7f9522ab152 (patch)
treeb4d8d911bb0f8607b84121cfa9c5287882e35c8a /src
parent0dc1b4a44ede7316867e3803af1444a6190d7aad (diff)
downloadmpd-30e288067529080b9d8ac124af27b7f9522ab152.tar.gz
mpd-30e288067529080b9d8ac124af27b7f9522ab152.tar.xz
mpd-30e288067529080b9d8ac124af27b7f9522ab152.zip
tag: added support for MusicBrainz tags
Added all important id tags from the MusicBrainz wiki: http://musicbrainz.org/doc/MusicBrainzTag This should automatically enable its suport in the vorbis and flac decoder plugins.
Diffstat (limited to '')
-rw-r--r--src/tag.c8
-rw-r--r--src/tag.h6
2 files changed, 13 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index 23d786ec2..242ea7383 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -53,7 +53,13 @@ const char *mpdTagItemKeys[TAG_NUM_OF_ITEM_TYPES] = {
"Composer",
"Performer",
"Comment",
- "Disc"
+ "Disc",
+
+ /* MusicBrainz tags from http://musicbrainz.org/doc/MusicBrainzTag */
+ [TAG_MUSICBRAINZ_ARTISTID] = "MUSICBRAINZ_ARTISTID",
+ [TAG_MUSICBRAINZ_ALBUMID] = "MUSICBRAINZ_ALBUMID",
+ [TAG_MUSICBRAINZ_ALBUMARTISTID] = "MUSICBRAINZ_ALBUMARTISTID",
+ [TAG_MUSICBRAINZ_TRACKID] = "MUSICBRAINZ_TACKID",
};
int8_t ignoreTagItems[TAG_NUM_OF_ITEM_TYPES];
diff --git a/src/tag.h b/src/tag.h
index 0c525b24b..ccaf301d0 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -39,6 +39,12 @@ enum tag_type {
TAG_ITEM_PERFORMER,
TAG_ITEM_COMMENT,
TAG_ITEM_DISC,
+
+ TAG_MUSICBRAINZ_ARTISTID,
+ TAG_MUSICBRAINZ_ALBUMID,
+ TAG_MUSICBRAINZ_ALBUMARTISTID,
+ TAG_MUSICBRAINZ_TRACKID,
+
TAG_NUM_OF_ITEM_TYPES
};