[gnome-music/wip/mschraal/core-thumb-property: 9/11] 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: 9/11] Remove coverstack.py and albumartcache.py
- Date: Fri, 19 Jun 2020 23:47:18 +0000 (UTC)
commit 42657b2d6baa1bd17979d961f9c488878206c286
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 9ecc7a4d..8b18bf14 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -198,12 +198,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 9fd4b3f1..e9cf073d 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -878,25 +878,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]