[gnome-music/wip/jfelder/flatpak-submodule-lua: 4/4] albumartcache: Remote thumb uri can also be an empty string



commit aa8129c829bc08a9a93fc4273ae45bdb1a854131
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Sep 28 14:33:58 2018 +0200

    albumartcache: Remote thumb uri can also be an empty string

 gnomemusic/albumartcache.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/albumartcache.py b/gnomemusic/albumartcache.py
index 3ad64fcf..cbda74c3 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -664,7 +664,8 @@ class RemoteArt(GObject.GObject):
 
         thumb_uri = item.get_thumbnail()
 
-        if thumb_uri is None:
+        if (thumb_uri is None
+                or thumb_uri == ""):
             self.emit('unavailable')
             return
 


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