tracker: Only consider objects with uris
authorJens Georg <mail@jensge.org>
Tue, 13 Sep 2011 05:48:41 +0000 (07:48 +0200)
committerJens Georg <mail@jensge.org>
Tue, 13 Sep 2011 06:20:10 +0000 (08:20 +0200)
src/plugins/tracker/rygel-tracker-selection-query.vala

index f17ee9a..5598ac1 100644 (file)
@@ -31,7 +31,9 @@ public class Rygel.Tracker.SelectionQuery : Query {
                                          ITEM_VARIABLE + ")) ||" +
                                          " nmm:uPnPShared(" +
                                          ITEM_VARIABLE +
-                                         ") = true)";
+                                         ") = true) && " +
+                                         "(BOUND(nie:url(" +
+                                         ITEM_VARIABLE + ")))";
     private const string STRICT_SHARED_FILTER = "(BOUND(nmm:dlnaProfile(" +
                                                 ITEM_VARIABLE + ")))";
     private const string AVAILABLE_FILTER = "(tracker:available(" +