From d34ef512ea091d05c538018a2adc4e8ca806646a Mon Sep 17 00:00:00 2001 From: rembo10 Date: Fri, 22 Jun 2012 20:52:59 +0530 Subject: [PATCH] Just get the summary rather than the full content for now --- headphones/cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headphones/cache.py b/headphones/cache.py index 2e646c0d..b5544b12 100644 --- a/headphones/cache.py +++ b/headphones/cache.py @@ -183,7 +183,7 @@ class Cache(object): logger.warn('Could not parse data from url: ' + url) return try: - info = data['artist']['bio']['content'] + info = data['artist']['bio']['summary'] except KeyError: logger.debug('No artist bio found on url: ' + url) info = None @@ -220,7 +220,7 @@ class Cache(object): logger.warn('Could not parse data from url: ' + url) return try: - info = data['album']['wiki']['content'] + info = data['album']['wiki']['summary'] except KeyError: logger.debug('No album infomation found from: ' + url) info = None @@ -306,7 +306,7 @@ class Cache(object): if artwork: - # Make sure the info dir exists: + # Make sure the artwork dir exists: if not os.path.isdir(self.path_to_art_cache): try: os.makedirs(self.path_to_art_cache)