[gnome-music] Set grilo plugin ranks to avoid extra last.fm calls
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Set grilo plugin ranks to avoid extra last.fm calls
- Date: Fri, 3 Oct 2014 11:49:57 +0000 (UTC)
commit 9f24e770c334cadd67b2a5ccaffe27b3085f729f
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Fri Oct 3 13:00:56 2014 +0200
Set grilo plugin ranks to avoid extra last.fm calls
https://bugzilla.gnome.org/show_bug.cgi?id=736241
gnomemusic/grilo.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 854f200..be2bd86 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -24,11 +24,13 @@
# modify this code, you may extend this exception to your version of the
# code, but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version.
-
-from gi.repository import Grl, GLib, GObject
+from gi.repository import GLib, GObject
from gnomemusic.query import Query
from gnomemusic import log
import logging
+import os
+os.environ['GRL_PLUGIN_RANKS'] = 'local-metadata:3,filesystem:2,tracker:1,lastfm-albumart:0'
+from gi.repository import Grl
logger = logging.getLogger(__name__)
@@ -77,6 +79,7 @@ class Grilo(GObject.GObject):
self.changed_media_ids = []
self.pending_event_id = 0
self.changes_pending = {'Albums': False, 'Artists': False, 'Songs': False}
+
self.registry = Grl.Registry.get_default()
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]