[gnome-music] Don't recalculate cachedir



commit 017fc7e08dae8f6cededf514de64e70eb7dbe497
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Aug 5 12:25:26 2013 +0200

    Don't recalculate cachedir
    
    Fixes #100

 gnomemusic/albumArtCache.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 75d8350..ff919c6 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -183,6 +183,8 @@ class AlbumArtCache:
     invalid_chars = re.compile('[()<>\[\]{}_! #$^&*+=|\\\/"\'?~]', re.DOTALL)
     multiple_spaces = re.compile('\t|\s+', re.DOTALL)
 
+    cacheDir = os.path.join(GLib.get_user_cache_dir(), "media-art")
+
     @classmethod
     def get_default(self):
         if self.instance:
@@ -215,7 +217,7 @@ class AlbumArtCache:
     def __init__(self):
         self.logLookupErrors = False
         self.requested_uris = {}
-        self.cacheDir = os.path.join(GLib.get_user_cache_dir(), "media-art")
+        self
 
         self._keybuilder_funcs = [
             lambda artist, album:


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