summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--junklib.c3
-rw-r--r--plugins/flac/flac.c20
-rw-r--r--plugins/vorbis/vorbis.c17
3 files changed, 38 insertions, 2 deletions
diff --git a/junklib.c b/junklib.c
index bdba1602..f67b54d6 100644
--- a/junklib.c
+++ b/junklib.c
@@ -634,6 +634,9 @@ junk_read_ape (playItem_t *it, DB_FILE *fp) {
else if (!strcasecmp (key, "genre")) {
pl_add_meta (it, "genre", value);
}
+ else if (!strcasecmp (key, "composer")) {
+ pl_add_meta (it, "composer", value);
+ }
else if (!strcasecmp (key, "comment")) {
pl_add_meta (it, "comment", value);
}
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index 173df64c..0c6d232f 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -520,7 +520,25 @@ cflac_init_metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__Str
else if (!strncasecmp (s, "COMMENT=", 8)) {
deadbeef->pl_add_meta (it, "comment", s + 8);
}
- if (!strncasecmp (s, "CUESHEET=", 9)) {
+ else if (!strncasecmp (s, "PERFORMER=", 10)) {
+ deadbeef->pl_add_meta (it, "performer", s + 10);
+ }
+ else if (!strncasecmp (s, "ENSEMBLE=", 9)) {
+ deadbeef->pl_add_meta (it, "band", s + 9);
+ }
+ else if (!strncasecmp (s, "COMPOSER=", 9)) {
+ deadbeef->pl_add_meta (it, "composer", s + 9);
+ }
+ else if (!strncasecmp (s, "ENCODED-BY=", 11)) {
+ deadbeef->pl_add_meta (it, "vendor", s + 11);
+ }
+ else if (!strncasecmp (s, "DISCNUMBER=", 11)) {
+ deadbeef->pl_add_meta (it, "disc", s + 11);
+ }
+ else if (!strncasecmp (s, "COPYRIGHT=", 10)) {
+ deadbeef->pl_add_meta (it, "copyright", s + 10);
+ }
+ else if (!strncasecmp (s, "CUESHEET=", 9)) {
deadbeef->pl_add_meta (it, "cuesheet", s + 9);
// info->last = deadbeef->pl_insert_cue_from_buffer (info->after, info->fname, s+9, c->length-9, &plugin, "FLAC", info->totalsamples, info->samplerate);
}
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 96b25933..11a93dc2 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -92,9 +92,24 @@ update_vorbis_comments (DB_playItem_t *it, vorbis_comment *vc) {
else if (!strncasecmp (vc->user_comments[i], "date=", 5)) {
deadbeef->pl_add_meta (it, "year", vc->user_comments[i] + 5);
}
- else if (!strncasecmp (vc->user_comments[i], "comment=", 8)) {
+ else if (!strncasecmp (vc->user_comments[i], "COMMENT=", 8)) {
deadbeef->pl_add_meta (it, "comment", vc->user_comments[i] + 8);
}
+ else if (!strncasecmp (vc->user_comments[i], "PERFORMER=", 10)) {
+ deadbeef->pl_add_meta (it, "performer", vc->user_comments[i] + 10);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "ENSEMBLE=", 9)) {
+ deadbeef->pl_add_meta (it, "band", vc->user_comments[i] + 9);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "COMPOSER=", 9)) {
+ deadbeef->pl_add_meta (it, "composer", vc->user_comments[i] + 9);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "ENCODED-BY=", 11)) {
+ deadbeef->pl_add_meta (it, "vendor", vc->user_comments[i] + 11);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "DISCNUMBER=", 11)) {
+ deadbeef->pl_add_meta (it, "disc", vc->user_comments[i] + 11);
+ }
else if (!strncasecmp (vc->user_comments[i], "genre=", 6)) {
deadbeef->pl_add_meta (it, "genre", vc->user_comments[i] + 6);
}