From f53a8f8cd48b0c679b4bb7da2947e39ff2f7e223 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 15 Apr 2007 15:46:46 +0000 Subject: Added autoscore tag (%ra) to wps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13169 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/gui/gwps-common.c') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 5b06dd4b2b..d6576a2b3c 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -1175,6 +1175,13 @@ static char *get_token_value(struct gui_wps *gwps, snprintf(buf, buf_size, "%d", id3->rating); return buf; + case WPS_TOKEN_DATABASE_AUTOSCORE: + if (intval) + *intval = id3->score + 1; + + snprintf(buf, buf_size, "%d", id3->score); + return buf; + #if (CONFIG_CODEC == SWCODEC) case WPS_TOKEN_CROSSFADE: if (intval) -- cgit v1.2.3