[gnome-music/wip/mschraal/art-fixes-regressions: 18/20] grltrackerwrapper: Fix art callbacks




commit dca11e2e6dd97bf1931749e48d3e9a9dac86d0e4
Author: Marinus Schraal <mschraal gnome org>
Date:   Tue Sep 7 02:18:19 2021 +0200

    grltrackerwrapper: Fix art callbacks
    
    If an art uri is retrieved, the query callback will end with an empty
    set (no media). Setting the thumbnail to generic here is unneeded as it
    should be generic to begin with, but it also might overwrite a valid uri
    that has been set in a previous query iteration.
    
    Do not set the coreobject thumbnail to "generic".

 gnomemusic/grilowrappers/grltrackerwrapper.py | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 6d9203981..a86dbb890 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -1218,7 +1218,6 @@ class GrlTrackerWrapper(GObject.GObject):
                 return
 
             if queried_media is None:
-                coresong.props.thumbnail = "generic"
                 return
 
             self._async_queue.queue(
@@ -1248,7 +1247,6 @@ class GrlTrackerWrapper(GObject.GObject):
                 return
 
             if queried_media is None:
-                corealbum.props.thumbnail = "generic"
                 return
 
             self._async_queue.queue(
@@ -1280,7 +1278,6 @@ class GrlTrackerWrapper(GObject.GObject):
                 return
 
             if resolved_media is None:
-                coreartist.props.thumbnail = "generic"
                 return
 
             self._async_queue.queue(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]