summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-06-06 19:34:35 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-06-06 19:34:35 +0000
commit261bb920c2719a472be388d320cdfadfa3732ad6 (patch)
tree9e52be510e20142534ccf0303769256353c595e3 /apps/plugins/searchengine
parent4dd5134a1fef577721cf5b6dfd9f0c529803d2ec (diff)
downloadrockbox-261bb920c2719a472be388d320cdfadfa3732ad6.zip
rockbox-261bb920c2719a472be388d320cdfadfa3732ad6.tar.gz
rockbox-261bb920c2719a472be388d320cdfadfa3732ad6.tar.bz2
rockbox-261bb920c2719a472be388d320cdfadfa3732ad6.tar.xz
New search capabilities; autorating, bitrate, track number, playtime, samplerate
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6588 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/searchengine')
-rw-r--r--apps/plugins/searchengine/token.c12
-rw-r--r--apps/plugins/searchengine/token.h4
2 files changed, 16 insertions, 0 deletions
diff --git a/apps/plugins/searchengine/token.c b/apps/plugins/searchengine/token.c
index 5950605..d51d92a 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;
diff --git a/apps/plugins/searchengine/token.h b/apps/plugins/searchengine/token.h
index 1206551..cd33769 100644
--- a/apps/plugins/searchengine/token.h
+++ b/apps/plugins/searchengine/token.h
@@ -44,6 +44,10 @@
#define INTVALUE_RATING 2
#define INTVALUE_PLAYCOUNT 3
#define INTVALUE_AUTORATING 4
+#define INTVALUE_PLAYTIME 5
+#define INTVALUE_TRACKNUM 6
+#define INTVALUE_SAMPLERATE 7
+#define INTVALUE_BITRATE 8
#define INTVALUE_TITLE 14
#define INTVALUE_ARTIST 15
#define INTVALUE_ALBUM 16