diff options
author | 2009-08-30 19:35:29 +0200 | |
---|---|---|
committer | 2009-08-30 19:35:29 +0200 | |
commit | e1d7abaa0d2e3737e8196057421a54d06b4e9104 (patch) | |
tree | ec25c0197bfe64906d6448766dcf36834f0e2d6b /cvorbis.c | |
parent | 7b0c87809108ab4e366580efae077d87731db374 (diff) |
improved tag reading from ogg vorbis files
Diffstat (limited to 'cvorbis.c')
-rw-r--r-- | cvorbis.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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); } } |