mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-22 12:49:26 +00:00
Bugfixes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user