From cd2bec3fe4ce5e0f78e0251efb913371a47a9d85 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Thu, 21 Jun 2012 15:50:27 +0530 Subject: [PATCH] A few changes to get the getArtistURL function working properly --- headphones/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/cache.py b/headphones/cache.py index 24da24c9..69c367fb 100644 --- a/headphones/cache.py +++ b/headphones/cache.py @@ -211,6 +211,6 @@ def getArtworkURL(id, id_type): c = Cache() artwork_path = c.get_artwork_from_cache(id, id_type) filename = os.path.basename(artwork_path) - encoded_url = filename.split('.')[2:] + encoded_url = '.'.join(filename.split('.')[2:]) normal_url = encoded_url.replace('%%%','/').replace('_%_',':') return normal_url