[gnome-music/wip/mschraal/core-thumb-property: 20/22] Remove coverstack.py and albumartcache.py



commit 6e676b628f936e18557069847b48f24d600dcdc0
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 71ead33d..709de6ea 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]