This commit is contained in:
bwq
2011-10-12 13:39:38 +02:00
parent 0655b30a3d
commit d9dc405ee5
@@ -21,7 +21,7 @@ class Blackhole(Downloader):
try:
file = data.get('download')(url = data.get('url'), nzb_id = data.get('id'))
if "no nzb" in file:
if len(file) < 50:
log.error('No nzb available!')
return False
@@ -34,8 +34,8 @@ class Blackhole(Downloader):
f.write(file)
return True
else:
log.info('File %s already exists.' % fullPath)
return True
log.info('File %s already exists.' % fullPath)
return True
except:
log.error('Failed to download to blackhole %s' % traceback.format_exc())