Browse Source

Improve black hole support

Also scan the 'from' folder if Black hole is used together with another
downloader.
pull/2545/head
mano3m 12 years ago
parent
commit
c9980539f0
  1. 4
      couchpotato/core/downloaders/blackhole/main.py
  2. 5
      couchpotato/core/plugins/renamer/main.py

4
couchpotato/core/downloaders/blackhole/main.py

@ -51,10 +51,10 @@ class Blackhole(Downloader):
with open(full_path, 'wb') as f:
f.write(filedata)
os.chmod(full_path, Env.getPermission('file'))
return True
return self.downloadReturnId('')
else:
log.info('File %s already exists.', full_path)
return True
return self.downloadReturnId('')
except:
log.error('Failed to download to blackhole %s', traceback.format_exc())

5
couchpotato/core/plugins/renamer/main.py

@ -827,6 +827,11 @@ Remove it if you want it to be renamed (again, or at least let it try again)
fireEvent('release.update_status', rel.id, status = ignored_status, single = True)
continue
if not rel_dict['info'].get('download_id'):
log.debug('Download status functionality is not implemented for downloader (%s) of release %s.', (rel_dict['info'].get('download_downloader', 'unknown'), rel_dict['info']['name']))
scan_required = True
continue
# check status
nzbname = self.createNzbName(rel_dict['info'], movie_dict)

Loading…
Cancel
Save