[gnome-music] coregrilo: Do not search online sources by default
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] coregrilo: Do not search online sources by default
- Date: Sat, 7 Mar 2020 15:37:03 +0000 (UTC)
commit 0a5b7c30d05b08d5c84eac313729a8b0aca70653
Author: Marinus Schraal <mschraal gnome org>
Date: Fri Nov 8 21:23:41 2019 +0100
coregrilo: Do not search online sources by default
On search Grilo would search online sources by default as well. This is
unwanted as it is a privacy issue.
Currently Music has no UI to enable/disable this by user request, go the
safe route and disable it for stable release.
Closes #317
gnomemusic/coregrilo.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 3fcdb3ec..4d408acf 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -145,7 +145,8 @@ class CoreGrilo(GObject.GObject):
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):
+ and source.supported_operations() & Grl.SupportedOps.SEARCH
+ and "net:internet" not in source.props.source_tags):
self._search_wrappers[source.props.source_id] = GrlSearchWrapper(
source, self._coremodel, self._application, self)
self._log.debug("Adding search source {}".format(source))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]