[gnome-music/wip/mschraal/asyncqueue-fixes: 3/6] grltrackerwrapper: Make art queries low prio
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/asyncqueue-fixes: 3/6] grltrackerwrapper: Make art queries low prio
- Date: Sun, 19 Sep 2021 11:05:08 +0000 (UTC)
commit ab7f61a7df338f7ffa891700b32cd1cf54eeff11
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Sep 19 13:01:13 2021 +0200
grltrackerwrapper: Make art queries low prio
If art queries are going through Grilo it means that they are not in
cache, so they have lower priority than anything else going on.
gnomemusic/grilowrappers/grltrackerwrapper.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 910ecdb36..1b65fab97 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -1240,7 +1240,7 @@ class GrlTrackerWrapper(GObject.GObject):
query: str = self._get_album_for_media_id_query(song_id)
self.props.source.query(
- query, self._METADATA_THUMBNAIL_KEYS, self._full_options,
+ query, self._METADATA_THUMBNAIL_KEYS, self._full_options_lprio,
art_retrieved_cb)
def get_album_art(self, corealbum: CoreAlbum) -> None:
@@ -1269,7 +1269,7 @@ class GrlTrackerWrapper(GObject.GObject):
query: str = self._get_album_for_media_id_query(album_id, False)
self.props.source.query(
- query, self._METADATA_THUMBNAIL_KEYS, self._full_options,
+ query, self._METADATA_THUMBNAIL_KEYS, self._full_options_lprio,
art_retrieved_cb)
def get_artist_art(self, coreartist: CoreArtist) -> None:
@@ -1297,7 +1297,7 @@ class GrlTrackerWrapper(GObject.GObject):
StoreArt(), coreartist, resolved_media.get_thumbnail())
self.props.source.resolve(
- media, [Grl.METADATA_KEY_THUMBNAIL], self._full_options,
+ media, [Grl.METADATA_KEY_THUMBNAIL], self._full_options_lprio,
art_resolved_cb)
def stage_playlist_deletion(self, playlist: Optional[Playlist]) -> None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]