mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 00:44:00 +01:00
Just get the summary rather than the full content for now
This commit is contained in:
+3
-3
@@ -183,7 +183,7 @@ class Cache(object):
|
|||||||
logger.warn('Could not parse data from url: ' + url)
|
logger.warn('Could not parse data from url: ' + url)
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
info = data['artist']['bio']['content']
|
info = data['artist']['bio']['summary']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.debug('No artist bio found on url: ' + url)
|
logger.debug('No artist bio found on url: ' + url)
|
||||||
info = None
|
info = None
|
||||||
@@ -220,7 +220,7 @@ class Cache(object):
|
|||||||
logger.warn('Could not parse data from url: ' + url)
|
logger.warn('Could not parse data from url: ' + url)
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
info = data['album']['wiki']['content']
|
info = data['album']['wiki']['summary']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.debug('No album infomation found from: ' + url)
|
logger.debug('No album infomation found from: ' + url)
|
||||||
info = None
|
info = None
|
||||||
@@ -306,7 +306,7 @@ class Cache(object):
|
|||||||
|
|
||||||
if artwork:
|
if artwork:
|
||||||
|
|
||||||
# Make sure the info dir exists:
|
# Make sure the artwork dir exists:
|
||||||
if not os.path.isdir(self.path_to_art_cache):
|
if not os.path.isdir(self.path_to_art_cache):
|
||||||
try:
|
try:
|
||||||
os.makedirs(self.path_to_art_cache)
|
os.makedirs(self.path_to_art_cache)
|
||||||
|
|||||||
Reference in New Issue
Block a user