mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-19 23:44:01 +01: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:
|
if headphones.EMBED_ALBUM_ART or headphones.ADD_ALBUM_ART:
|
||||||
artwork = request.request_content(album_art_path)
|
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....")
|
logger.info("No suitable album art found from Amazon. Checking Last.FM....")
|
||||||
artwork = albumart.getCachedArt(albumid)
|
artwork = albumart.getCachedArt(albumid)
|
||||||
if not artwork or len(artwork) < 100:
|
if not artwork or len(artwork) < 100:
|
||||||
|
|||||||
@@ -1307,9 +1307,9 @@ def preprocess(resultlist):
|
|||||||
return request.request_content(url=result[2], headers=headers), result
|
return request.request_content(url=result[2], headers=headers), result
|
||||||
|
|
||||||
else:
|
else:
|
||||||
usenet_retention = headphones.USENET_RETENTION or 2000
|
usenet_retention = int(headphones.USENET_RETENTION or 2000)
|
||||||
|
|
||||||
nzb = getresultNZB(result)
|
nzb = getresultNZB(result)
|
||||||
|
|
||||||
if nzb:
|
if nzb:
|
||||||
try:
|
try:
|
||||||
d = minidom.parseString(nzb)
|
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?
|
#TODO: Do we want rar checking in here to try to keep unknowns out?
|
||||||
#or at least the option to do so?
|
#or at least the option to do so?
|
||||||
except Exception, e:
|
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
|
continue
|
||||||
|
|
||||||
return nzb, result
|
return nzb, result
|
||||||
|
|||||||
Reference in New Issue
Block a user