summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c9
1 files changed, 9 insertions, 0 deletions
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,
876 case WPS_TOKEN_METADATA_GENRE: 876 case WPS_TOKEN_METADATA_GENRE:
877 return id3->genre_string; 877 return id3->genre_string;
878 878
879 case WPS_TOKEN_METADATA_DISC_NUMBER:
880 if (id3->disc_string)
881 return id3->disc_string;
882 if (id3->discnum) {
883 snprintf(buf, buf_size, "%d", id3->discnum);
884 return buf;
885 }
886 return NULL;
887
879 case WPS_TOKEN_METADATA_TRACK_NUMBER: 888 case WPS_TOKEN_METADATA_TRACK_NUMBER:
880 if (id3->track_string) 889 if (id3->track_string)
881 return id3->track_string; 890 return id3->track_string;