[gnome-music/wip/mschraal/core-thumb-property: 18/19] grltrackerwrapper: Clarify function name



commit 4a78f90413cc8aea5d4ed2adf4b8a57828ce10ea
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Jun 15 02:47:51 2020 +0200

    grltrackerwrapper: Clarify function name
    
    Make it clear the art retrieval query functions produce queries.

 gnomemusic/grilowrappers/grltrackerwrapper.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 554b6d82..05a3e059 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -881,7 +881,7 @@ class GrlTrackerWrapper(GObject.GObject):
         self.props.source.query(
             query, self.METADATA_KEYS, options, songs_search_cb)
 
-    def _get_album_for_album_id(self, album_id):
+    def _get_album_for_album_id_query(self, album_id):
         # Even though we check for the album_artist, we fill
         # the artist key, since Grilo coverart plugins use
         # only that key for retrieval.
@@ -923,7 +923,7 @@ class GrlTrackerWrapper(GObject.GObject):
 
         return query
 
-    def _get_album_for_song_id(self, song_id):
+    def _get_album_for_song_id_query(self, song_id):
         # See get_album_for_album_id comment.
         query = """
         SELECT DISTINCT
@@ -995,7 +995,7 @@ class GrlTrackerWrapper(GObject.GObject):
                 StoreArt(coresong, thumbnail_uri)
 
         song_id = media.get_id()
-        query = self._get_album_for_song_id(song_id)
+        query = self._get_album_for_song_id_query(song_id)
 
         full_options = Grl.OperationOptions()
         full_options.set_resolution_flags(
@@ -1030,7 +1030,7 @@ class GrlTrackerWrapper(GObject.GObject):
                 StoreArt(corealbum, thumbnail_uri)
 
         album_id = media.get_id()
-        query = self._get_album_for_album_id(album_id)
+        query = self._get_album_for_album_id_query(album_id)
 
         full_options = Grl.OperationOptions()
         full_options.set_resolution_flags(


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