From de10357a9de38619cb086cbb7e6e8a68dc3e7ff6 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 27 Jun 2012 16:45:48 +0530 Subject: [PATCH] Fix for windows cache path --- headphones/cache.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/headphones/cache.py b/headphones/cache.py index 32ca9d62..5c257a61 100644 --- a/headphones/cache.py +++ b/headphones/cache.py @@ -489,7 +489,8 @@ def getArtwork(ArtistID=None, AlbumID=None): if artwork_path.startswith('http://'): return artwork_path else: - return "cache" + artwork_path[len(headphones.CACHE_DIR):] + artwork_file = os.path.basename(artwork_path) + return "cache/artwork/" + artwork_file def getThumb(ArtistID=None, AlbumID=None): @@ -502,7 +503,8 @@ def getThumb(ArtistID=None, AlbumID=None): if artwork_path.startswith('http://'): return artwork_path else: - return "cache" + artwork_path[len(headphones.CACHE_DIR):] + thumbnail_file = os.path.basename(artwork_path) + return "cache/artwork/" + thumbnail_file def getInfo(ArtistID=None, AlbumID=None):