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



commit f72b9146b5be4a36652e416e1cdcbd051fa2cf70
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 709de6ea..0aa470bf 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
@@ -996,7 +996,7 @@ class GrlTrackerWrapper(GObject.GObject):
                 StoreArt(coresong)
 
         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(
@@ -1032,7 +1032,7 @@ class GrlTrackerWrapper(GObject.GObject):
                 StoreArt(corealbum)
 
         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]