aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2006-04-30 19:55:56 +0000
committerQball Cow <qball@qballcow.nl>2006-04-30 19:55:56 +0000
commit4324150b42ea7720629b74014401119754429b04 (patch)
treeb2366f2caf7e0e1f9d3b8d56ee61d8c6772122e0 /src/tag.c
parent8aca530b863a54deab7b204e21a9b1396ace34b3 (diff)
downloadmpd-4324150b42ea7720629b74014401119754429b04.tar.gz
mpd-4324150b42ea7720629b74014401119754429b04.tar.xz
mpd-4324150b42ea7720629b74014401119754429b04.zip
Added Disc # metadata item based on bug 571 (added id3v2 support)
git-svn-id: https://svn.musicpd.org/mpd/trunk@4131 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index 0fa232345..4a716515b 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -46,6 +46,9 @@
#ifndef ID3_FRAME_COMPOSER
#define ID3_FRAME_COMPOSER "TCOM"
#endif
+#ifndef ID3_FRAME_DISC
+#define ID3_FRAME_DISC "TPOS"
+#endif
#endif
char * mpdTagItemKeys[TAG_NUM_OF_ITEM_TYPES] =
@@ -59,7 +62,8 @@ char * mpdTagItemKeys[TAG_NUM_OF_ITEM_TYPES] =
"Date",
"Composer",
"Performer",
- "Comment"
+ "Comment",
+ "Disc"
};
static mpd_sint8 ignoreTagItems[TAG_NUM_OF_ITEM_TYPES];
@@ -171,6 +175,7 @@ MpdTag * parseId3Tag(struct id3_tag * tag) {
ret = getID3Info(tag, ID3_FRAME_GENRE, TAG_ITEM_GENRE, ret);
ret = getID3Info(tag, ID3_FRAME_COMPOSER, TAG_ITEM_COMPOSER, ret);
ret = getID3Info(tag, ID3_FRAME_COMMENT, TAG_ITEM_COMMENT, ret);
+ ret = getID3Info(tag, ID3_FRAME_DISC, TAG_ITEM_DISC, ret);
return ret;
}