[gnome-music] albumArtCache: Don't resolve the thumbnail key



commit 9caf1352dfb6684f35ce204d93ef6363f325e9a9
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sat Aug 3 15:25:13 2013 +0800

    albumArtCache: Don't resolve the thumbnail key
    
    Workaround for the random segfault when resolving the thumbnail key.
    Populate methods in grilo.py resolves this key too, so this part could be
    safely removed.

 gnomemusic/albumArtCache.py |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index c895bf4..75d8350 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -6,8 +6,6 @@ from math import pi
 import os
 import re
 
-from gnomemusic.grilo import grilo
-
 
 class LookupRequest:
     def __init__(self, item, width, height, callback, data=None):
@@ -97,14 +95,6 @@ class LookupRequest:
         options.set_flags(Grl.ResolutionFlags.FULL |
                           Grl.ResolutionFlags.IDLE_RELAY)
 
-        try:
-            grilo.tracker.resolve(self.item, [Grl.METADATA_KEY_THUMBNAIL],
-                                  options, self._on_resolve_ready, None)
-        except Exception as error:
-            if AlbumArtCache.get_default().logLookupErrors:
-                print("ERROR:", error)
-
-    def _on_resolve_ready(self, source, param, item, data=None, error=None):
         uri = self.item.get_thumbnail()
         if uri is None:
             self.finish(None)


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