[gnome-music] coregrilo: Restore plugins rank support



commit e38c10c7f4a5f9528f4b7528406a37ab634f0042
Author: Jean Felder <jfelder src gnome org>
Date:   Mon Sep 2 12:44:33 2019 +0200

    coregrilo: Restore plugins rank support
    
    This is used to sort the plugins which can download cover art.

 gnomemusic/coregrilo.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 52c62003..e2001bf2 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -43,6 +43,9 @@ class CoreGrilo(GObject.GObject):
         'grl-spotify-cover'
     ]
 
+    _grl_plugin_ranks = ("grl-lastfm-cover:2,"
+                         "grl-theaudiodb-cover:1")
+
     _theaudiodb_api_key = "195003"
 
     cover_sources = GObject.Property(type=bool, default=False)
@@ -75,6 +78,8 @@ class CoreGrilo(GObject.GObject):
         self._tracker_wrapper.connect(
             "notify::tracker-available", self._on_tracker_available_changed)
 
+        GLib.setenv("GRL_PLUGIN_RANKS", self._grl_plugin_ranks, True)
+
         Grl.init(None)
 
         self._registry = Grl.Registry.get_default()


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