summaryrefslogtreecommitdiff
path: root/plugins/flac
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-31 14:40:27 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-31 14:40:27 +0100
commit21320a9e9e12e683f4e2cf58605c4fa80896a907 (patch)
tree4924f348598acf53dcb30f1a5acbfbe4225a9f35 /plugins/flac
parent9e3e84fe80a7984dc20817f993295fdced09dc7b (diff)
flac: added year, comment and genre tags support
Diffstat (limited to 'plugins/flac')
-rw-r--r--plugins/flac/flac.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index 4b9f1950..0275c40c 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -416,7 +416,13 @@ cflac_init_metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__Str
deadbeef->pl_add_meta (it, "track", s + 12);
}
else if (!strncasecmp (s, "DATE=", 5)) {
- deadbeef->pl_add_meta (it, "date", s + 5);
+ deadbeef->pl_add_meta (it, "year", s + 5);
+ }
+ else if (!strncasecmp (s, "GENRE=", 6)) {
+ deadbeef->pl_add_meta (it, "genre", s + 6);
+ }
+ else if (!strncasecmp (s, "COMMENT=", 8)) {
+ deadbeef->pl_add_meta (it, "comment", s + 8);
}
else if (!strncasecmp (s, "replaygain_album_gain=", 22)) {
it->replaygain_album_gain = atof (s + 22);