[gnome-music/cherry-pick-521d9254] grilo: Block spotify plugin



commit 8e8ccd56ae706bfb7c05b73d0957a747ce3e2769
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Jan 11 23:41:39 2018 +0100

    grilo: Block spotify plugin
    
    Spotify no longer allows unauthenticated coverart access, making the
    plugin useless and only print warnings.
    
    Closes #132
    
    
    (cherry picked from commit 521d92547172a0b37c2f75c28b9ad6d715d5be15)

 gnomemusic/grilo.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 21d6f02..a013d2e 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -35,8 +35,7 @@ import os
 os.environ['GRL_PLUGIN_RANKS'] = ("grl-local-metadata:5,"
                                   "grl-filesystem:4,"
                                   "grl-tracker-source:3,"
-                                  "grl-lastfm-cover:2,"
-                                  "grl-spotify-cover:1")
+                                  "grl-lastfm-cover:2")
 from gi.repository import Grl
 logger = logging.getLogger(__name__)
 
@@ -96,7 +95,13 @@ class Grilo(GObject.GObject):
                                                Grl.ResolutionFlags.IDLE_RELAY)
 
         self.sources = {}
-        self.blacklist = ['grl-filesystem', 'grl-bookmarks', 'grl-metadata-store', 'grl-podcasts']
+        self.blacklist = [
+            'grl-filesystem',
+            'grl-bookmarks',
+            'grl-metadata-store',
+            'grl-podcasts',
+            'grl-spotify-cover'
+        ]
         self.tracker = None
         self.changed_media_ids = []
         self.pending_event_id = 0


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