Properly disable blackhole downloading

This commit is contained in:
Ruud
2011-10-18 00:30:18 +02:00
parent 019c9d4d76
commit c60ac5df26
@@ -10,7 +10,7 @@ class Blackhole(Downloader):
type = ['nzb', 'torrent']
def download(self, data = {}, movie = {}):
if self.isDisabled() or not self.isCorrectType(data.get('type') or not self.conf('use_for') in ['both', data.get('type')]):
if self.isDisabled() or (not self.isCorrectType(data.get('type')) or (not self.conf('use_for') in ['both', data.get('type')])):
return
directory = self.conf('directory')