[PATCH 17/17] tracker: avoid displaying video files twice in browse



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

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

diff --git a/src/media/tracker/grl-tracker-api.c b/src/media/tracker/grl-tracker-api.c
index 9fc59ee..6a4f9d7 100644
--- a/src/media/tracker/grl-tracker-api.c
+++ b/src/media/tracker/grl-tracker-api.c
@@ -94,7 +94,7 @@ GRL_LOG_DOMAIN_STATIC(tracker_result_log_domain);
   "LIMIT %i"
 
 #define TRACKER_BROWSE_FILESYSTEM_ROOT_REQUEST          \
-  "SELECT rdf:type(?urn) %s "                           \
+  "SELECT DISTINCT rdf:type(?urn) %s "                  \
   "WHERE "                                              \
   "{ "                                                  \
   "{ ?urn a nfo:Folder } UNION "                        \
@@ -109,7 +109,7 @@ GRL_LOG_DOMAIN_STATIC(tracker_result_log_domain);
   "LIMIT %i"
 
 #define TRACKER_BROWSE_FILESYSTEM_REQUEST                       \
-  "SELECT rdf:type(?urn) %s "                                   \
+  "SELECT DISTINCT rdf:type(?urn) %s "                          \
   "WHERE "                                                      \
   "{ "                                                          \
   "{ ?urn a nfo:Folder } UNION "                                \
-- 
1.7.4.1



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