[gnome-music/wip/mschraal/core-thumb-property: 17/18] grltrackerwrapper: Clarify function name
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core-thumb-property: 17/18] grltrackerwrapper: Clarify function name
- Date: Mon, 6 Jul 2020 09:34:41 +0000 (UTC)
commit 765bebff9cbd0b3034b3d5921503b3a289814f77
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 a6315931..3a834175 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
@@ -1003,7 +1003,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(
@@ -1039,7 +1039,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]