[grilo-plugins] tracker: switch to tracker:id as Grilo key id instead of URN



commit 34001f7bbb486ce101342618bde54f8d6554ff9d
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Mon Feb 7 16:48:51 2011 +0000

    tracker: switch to tracker:id as Grilo key id instead of URN
    
    This will allow optimization during notification process
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/media/tracker/grl-tracker.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/media/tracker/grl-tracker.c b/src/media/tracker/grl-tracker.c
index b07627f..809d789 100644
--- a/src/media/tracker/grl-tracker.c
+++ b/src/media/tracker/grl-tracker.c
@@ -137,9 +137,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;
@@ -852,7 +852,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,



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