[gnome-music/wip/mschraal/grilo-disable-duplicate-tracker-search] coregrilo: Hide Tracker search wrapper results



commit f73f28b082c8e8a598626941deda6e43dbbeb745
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Nov 8 21:39:33 2019 +0100

    coregrilo: Hide Tracker search wrapper results
    
    The Tracker source was searched both through GrlTrackerWrapper and the
    generalized GrlSearchWrapper. This lead to duplicate results.
    
    Disable Tracker through GrlSearchWrapper.
    
    Closes #318

 gnomemusic/coregrilo.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 0d34dc34..5581cdbe 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -144,6 +144,7 @@ class CoreGrilo(GObject.GObject):
             print("wrapper", new_wrapper)
         elif (source.props.source_id not in self._search_wrappers.keys()
                 and source.props.source_id not in self._wrappers.keys()
+                and source.props.source_id != "grl-tracker-source"
                 and source.get_supported_media() & Grl.MediaType.AUDIO
                 and source.supported_operations() & Grl.SupportedOps.SEARCH):
             self._search_wrappers[source.props.source_id] = GrlSearchWrapper(


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