[gnome-music/wip/mschraal/core-thumb-property: 16/18] Remove coverstack.py and albumartcache.py
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core-thumb-property: 16/18] Remove coverstack.py and albumartcache.py
- Date: Sun, 5 Jul 2020 22:39:37 +0000 (UTC)
commit ef567e96513d132c618ebac5cbece575e9dc5d19
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Jun 14 21:12:03 2020 +0200
Remove coverstack.py and albumartcache.py
It is replaced and no longer used.
gnomemusic/albumartcache.py | 586 --------------------------
gnomemusic/coregrilo.py | 6 -
gnomemusic/grilowrappers/grltrackerwrapper.py | 19 -
gnomemusic/widgets/coverstack.py | 146 -------
4 files changed, 757 deletions(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 3c9d8df6..5e606387 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -215,12 +215,6 @@ class CoreGrilo(GObject.GObject):
for wrapper in self._search_wrappers.values():
wrapper.search(text)
- def get_album_art_for_item(self, coresong, callback):
- # Tracker not (yet) loaded.
- if "grl-tracker-source" in self._wrappers:
- self._wrappers["grl-tracker-source"].get_album_art_for_item(
- coresong, callback)
-
def get_song_art(self, coresong):
"""Retrieve song art for the given CoreSong
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 9160b79c..554b6d82 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -881,25 +881,6 @@ class GrlTrackerWrapper(GObject.GObject):
self.props.source.query(
query, self.METADATA_KEYS, options, songs_search_cb)
- def get_album_art_for_item(self, coresong, callback):
- """Placeholder until we got a better solution
- """
- item_id = coresong.props.media.get_id()
-
- if coresong.props.media.is_audio():
- query = self._get_album_for_song_id(item_id)
- else:
- query = self._get_album_for_album_id(item_id)
-
- full_options = Grl.OperationOptions()
- full_options.set_resolution_flags(
- Grl.ResolutionFlags.FULL
- | Grl.ResolutionFlags.IDLE_RELAY)
- full_options.set_count(1)
-
- self.props.source.query(
- query, self.METADATA_THUMBNAIL_KEYS, full_options, callback)
-
def _get_album_for_album_id(self, album_id):
# Even though we check for the album_artist, we fill
# the artist key, since Grilo coverart plugins use
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]