Private GIT

Skip to content
Snippets Groups Projects
Commit b168c136 authored by Ruud's avatar Ruud
Browse files

Blackhole error on manual download. fix #1351

parent 14fffda3
Branches
Tags
No related merge requests found
...@@ -60,5 +60,11 @@ class Blackhole(Downloader): ...@@ -60,5 +60,11 @@ class Blackhole(Downloader):
return ['nzb'] return ['nzb']
def isEnabled(self, manual, data = {}): def isEnabled(self, manual, data = {}):
for_type = ['both']
if data and 'torrent' in data.get('type'):
for_type.append('torrent')
elif data:
for_type.append(data.get('type'))
return super(Blackhole, self).isEnabled(manual, data) and \ return super(Blackhole, self).isEnabled(manual, data) and \
((self.conf('use_for') in ['both', 'torrent' if 'torrent' in data.get('type') else data.get('type')])) ((self.conf('use_for') in for_type))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment