tracker: Allow miner to overide properties
authorJens Georg <mail@jensge.org>
Thu, 20 Oct 2011 09:50:28 +0000 (11:50 +0200)
committerJens Georg <mail@jensge.org>
Tue, 25 Oct 2011 10:36:24 +0000 (12:36 +0200)
Especially nmm:dlnaProfile and nie:mimeType

src/plugins/tracker/rygel-tracker-insertion-query.vala

index 29f8e56..62fae0d 100644 (file)
@@ -71,14 +71,20 @@ public class Rygel.Tracker.InsertionQuery : Query {
         triplets.add (new QueryTriplet (QUERY_ID,
                                         "nie:title",
                                         "\"" + item.title + "\""));
-        triplets.add (new QueryTriplet (QUERY_ID,
-                                        "nie:mimeType",
-                                        "\"" + item.mime_type + "\""));
+
+        triplets.add (new QueryTriplet.with_graph
+                                        (MINER_GRAPH,
+                                         QUERY_ID,
+                                         "nie:mimeType",
+                                         "\"" + item.mime_type + "\""));
         if (item.dlna_profile != null) {
-            triplets.add (new QueryTriplet (QUERY_ID,
-                                            "nmm:dlnaProfile",
-                                            "\"" + item.dlna_profile + "\""));
+            triplets.add (new QueryTriplet.with_graph
+                                        (MINER_GRAPH,
+                                         QUERY_ID,
+                                         "nmm:dlnaProfile",
+                                         "\"" + item.dlna_profile + "\""));
         }
+
         triplets.add (new QueryTriplet (QUERY_ID,
                                         "nie:url",
                                         "\"" + item.uris[0] + "\""));