summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/token.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/searchengine/token.c')
-rw-r--r--apps/plugins/searchengine/token.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/searchengine/token.c b/apps/plugins/searchengine/token.c
index 5950605ade..d51d92a712 100644
--- a/apps/plugins/searchengine/token.c
+++ b/apps/plugins/searchengine/token.c
@@ -72,6 +72,18 @@ int getvalue(struct token *token) {
case INTVALUE_PLAYCOUNT:
loadrundbdata();
return currententry->playcount;
+ case INTVALUE_PLAYTIME:
+ loadsongdata();
+ return currententry->playtime;
+ case INTVALUE_TRACKNUM:
+ loadsongdata();
+ return currententry->track;
+ case INTVALUE_BITRATE:
+ loadsongdata();
+ return currententry->bitrate;
+ case INTVALUE_SAMPLERATE:
+ loadsongdata();
+ return currententry->samplerate;
case INTVALUE_AUTORATING:
if(!dbglobal.gotplaycountlimits) {
index=dbglobal.currententryindex;