[PATCH 1/5] tracker: switch to tracker:id as Grilo key id instead of URN



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

This will allow optimization during notification process

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/tracker/grl-tracker.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index d05d197..4a9dfef 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -125,9 +125,9 @@ enum {
   "OFFSET %i "                                                          \
   "LIMIT %i"
 
-#define TRACKER_METADATA_REQUEST                                    \
-  "SELECT %s "							    \
-  "WHERE { ?urn a nie:DataObject . FILTER (?urn = <%s>) }"
+#define TRACKER_METADATA_REQUEST					\
+  "SELECT %s "								\
+  "WHERE { ?urn a nie:DataObject . FILTER (tracker:id(?urn) = %s) }"
 
 typedef struct {
   GrlKeyID     grl_key;
@@ -840,7 +840,7 @@ setup_key_mappings (void)
                       "video");
 
   insert_key_mapping (GRL_METADATA_KEY_ID,
-                      "?urn",
+                      "tracker:id(?urn)",
                       "file");
 
   insert_key_mapping (GRL_METADATA_KEY_LAST_PLAYED,
-- 
1.7.2.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]