From f4a61f0c4a999790f07d061352100ac6310a38f6 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Fri, 3 Aug 2007 10:00:42 +0000 Subject: Add support for parsing the disc number tag from metadata and use of it in the database. Patch originally from FS#4961 with some minor tweaks by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14154 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/gui/gwps-common.c') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 2c5238b972..9dddff3ea2 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -876,6 +876,15 @@ static char *get_token_value(struct gui_wps *gwps, case WPS_TOKEN_METADATA_GENRE: return id3->genre_string; + case WPS_TOKEN_METADATA_DISC_NUMBER: + if (id3->disc_string) + return id3->disc_string; + if (id3->discnum) { + snprintf(buf, buf_size, "%d", id3->discnum); + return buf; + } + return NULL; + case WPS_TOKEN_METADATA_TRACK_NUMBER: if (id3->track_string) return id3->track_string; -- cgit v1.2.3