summaryrefslogtreecommitdiff
path: root/cvorbis.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-30 19:35:29 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-30 19:35:29 +0200
commite1d7abaa0d2e3737e8196057421a54d06b4e9104 (patch)
treeec25c0197bfe64906d6448766dcf36834f0e2d6b /cvorbis.c
parent7b0c87809108ab4e366580efae077d87731db374 (diff)
improved tag reading from ogg vorbis files
Diffstat (limited to 'cvorbis.c')
-rw-r--r--cvorbis.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cvorbis.c b/cvorbis.c
index 1a2a02db..95bebc14 100644
--- a/cvorbis.c
+++ b/cvorbis.c
@@ -176,14 +176,17 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) {
if (vc) {
deadbeef->pl_add_meta (it, "vendor", vc->vendor);
for (int i = 0; i < vc->comments; i++) {
- if (!strncmp (vc->user_comments[i], "artist=", 7)) {
+ if (!strncasecmp (vc->user_comments[i], "artist=", 7)) {
deadbeef->pl_add_meta (it, "artist", vc->user_comments[i] + 7);
}
- else if (!strncmp (vc->user_comments[i], "title=", 6)) {
+ else if (!strncasecmp (vc->user_comments[i], "album=", 6)) {
+ deadbeef->pl_add_meta (it, "album", vc->user_comments[i] + 6);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "title=", 6)) {
deadbeef->pl_add_meta (it, "title", vc->user_comments[i] + 6);
title_added = 1;
}
- else if (!strncmp (vc->user_comments[i], "date=", 5)) {
+ else if (!strncasecmp (vc->user_comments[i], "date=", 5)) {
deadbeef->pl_add_meta (it, "date", vc->user_comments[i] + 5);
}
}