From 5b517e1202a867db4d1961bc96eb970b8cfdfd49 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 3 Sep 2012 09:54:14 +0200 Subject: [PATCH] Blackhole failed when only enabled torrent support. fix #791 --- couchpotato/core/downloaders/blackhole/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/blackhole/main.py b/couchpotato/core/downloaders/blackhole/main.py index 4713adf7..ca38fc49 100644 --- a/couchpotato/core/downloaders/blackhole/main.py +++ b/couchpotato/core/downloaders/blackhole/main.py @@ -11,7 +11,9 @@ class Blackhole(Downloader): type = ['nzb', 'torrent', 'torrent_magnet'] def download(self, data = {}, movie = {}, manual = False, filedata = None): - if self.isDisabled(manual) or (not self.isCorrectType(data.get('type')) or (not self.conf('use_for') in ['both', data.get('type')])): + if self.isDisabled(manual) or \ + (not self.isCorrectType(data.get('type')) or \ + (not self.conf('use_for') in ['both', 'torrent' if 'torrent' in data.get('type') else data.get('type')])): return directory = self.conf('directory')