[grilo-plugins/tracker-notification: 17/17] tracker: avoid displaying video files twice in browse



commit 1e1b434c6b5224b32e09c5cf7e832a5541b7664a
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Fri Mar 4 15:50:34 2011 +0000

    tracker: avoid displaying video files twice in browse
    
    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 "                                \



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