Moving this elsewhere.

This commit is contained in:
bwq
2011-10-11 22:43:00 +02:00
parent bfcc0ae6ea
commit 3f0d71a8fe
+1 -11
View File
@@ -28,17 +28,7 @@ class Blackhole(Downloader):
try:
file = data.get('download')(url = data.get('url'), nzb_id = data.get('id'))
# error handling for nzbs that aren't available
if "no nzb" in file:
log.error('No nzb available!')
return False
# some providers provide nzbs that are rarred, save these with the proper extension
if "DOCTYPE nzb" not in file:
if data.get('type') == 'nzb':
fullPath = os.path.join(directory, '%s%s.%s' % (toSafeString(data.get('name')), self.cpTag(movie) , 'rar'))
with open(fullPath, 'wb') as f:
f.write(file)
except: