[gnome-music] query: Refer to self as self



commit 41a77b1e44fa95aacf08cd9692fcd9e5b7917422
Author: Marinus Schraal <mschraal src gnome org>
Date:   Thu Nov 3 10:29:51 2016 +0100

    query: Refer to self as self

 gnomemusic/grilo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 6d4d137..cba798c 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -131,10 +131,10 @@ class Grilo(GObject.GObject):
                     media_id = media.get_id()
                     if changeType == Grl.SourceChangeType.ADDED:
                         # Check that this media is an audio file
-                        mime_type = grilo.tracker.query_sync(
+                        mime_type = self.tracker.query_sync(
                             Query.is_audio(media_id),
                             [Grl.METADATA_KEY_MIME],
-                            grilo.options)[0].get_mime()
+                            self.options)[0].get_mime()
                         if mime_type and mime_type.startswith("audio"):
                             self.changed_media_ids.append(media_id)
                     if changeType == Grl.SourceChangeType.REMOVED:


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