This commit is contained in:
Bas Stottelaar
2014-04-07 01:30:41 +02:00
parent 06f2f1c661
commit d34455af3f
2 changed files with 4 additions and 4 deletions

View File

@@ -362,7 +362,7 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list,
if headphones.EMBED_ALBUM_ART or headphones.ADD_ALBUM_ART:
artwork = request.request_content(album_art_path)
if not album_art_path or not artwor or len(artwork) < 100:
if not album_art_path or not artwork or len(artwork) < 100:
logger.info("No suitable album art found from Amazon. Checking Last.FM....")
artwork = albumart.getCachedArt(albumid)
if not artwork or len(artwork) < 100:

View File

@@ -1307,9 +1307,9 @@ def preprocess(resultlist):
return request.request_content(url=result[2], headers=headers), result
else:
usenet_retention = headphones.USENET_RETENTION or 2000
usenet_retention = int(headphones.USENET_RETENTION or 2000)
nzb = getresultNZB(result)
if nzb:
try:
d = minidom.parseString(nzb)
@@ -1327,7 +1327,7 @@ def preprocess(resultlist):
#TODO: Do we want rar checking in here to try to keep unknowns out?
#or at least the option to do so?
except Exception, e:
logger.error('Unable to parse the best result NZB. Error: %s. (Make sure your username/password/API is correct for provider: %s', e ,result[3])
logger.exception('Unhandled exception. Unable to parse the best result NZB. Error: %s. (Make sure your username/password/API is correct for provider: %s', e ,result[3])
continue
return nzb, result