summaryrefslogtreecommitdiff
path: root/plugins/vorbis
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-12 19:49:00 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-12 19:49:00 +0100
commit86877dd393908dc5b344b4bb704b9fb44c2ee82d (patch)
tree293b683107169c1a2103b64f6c33bb73d67a11dc /plugins/vorbis
parent1220a7453592878ae09711d64c80d99149a621b2 (diff)
added tracknumber load/display for ogg vorbis files
Diffstat (limited to 'plugins/vorbis')
-rw-r--r--plugins/vorbis/vorbis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 31e252eb..5dcab62d 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -83,6 +83,9 @@ update_vorbis_comments (DB_playItem_t *it, vorbis_comment *vc) {
else if (!strncasecmp (vc->user_comments[i], "title=", 6)) {
deadbeef->pl_add_meta (it, "title", vc->user_comments[i] + 6);
}
+ else if (!strncasecmp (vc->user_comments[i], "tracknumber=", 12)) {
+ deadbeef->pl_add_meta (it, "track", vc->user_comments[i] + 12);
+ }
else if (!strncasecmp (vc->user_comments[i], "date=", 5)) {
deadbeef->pl_add_meta (it, "date", vc->user_comments[i] + 5);
}