Commit 6bad758f authored by Marinus Schraal's avatar Marinus Schraal

grilo: Fix search crash when Tracker is not loaded

The album art code starts searching art, but the Tracker plugin might not
be ready resulting in a crash.
As a stop-gap solution skip looking for art if the Tracker plugin is not
around.
parent 743cf317
......@@ -368,6 +368,10 @@ class Grilo(GObject.GObject):
@log
def get_album_art_for_item(self, item, callback):
# Tracker not (yet) loaded.
if self.search_source is None:
return
item_id = item.get_id()
if item.is_audio():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment