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



commit e54c3138eb816a2f76e745586b0f9cea5ff9db5f
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/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 b07627f..809d789 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/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]