From fe472ecd082b18546ee93a38ecefc4d63ed3c2e0 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Fri, 22 Jun 2012 17:21:44 +0530 Subject: [PATCH] Modified getArtwork to return a relative path to the cached image --- headphones/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/cache.py b/headphones/cache.py index 067ac7a8..2e646c0d 100644 --- a/headphones/cache.py +++ b/headphones/cache.py @@ -345,7 +345,7 @@ def getArtwork(ArtistID=None, AlbumID=None): if artwork_path.startswith('http://'): return artwork_path else: - return "file://" + urllib.quote(artwork_path) + return "cache" + artwork_path[len(headphones.CACHE_DIR):] def getInfo(ArtistID=None, AlbumID=None):