diff --git a/couchpotato/core/downloaders/blackhole/__init__.py b/couchpotato/core/downloaders/blackhole/__init__.py index 6000972b..0f0e9bbb 100644 --- a/couchpotato/core/downloaders/blackhole/__init__.py +++ b/couchpotato/core/downloaders/blackhole/__init__.py @@ -16,12 +16,20 @@ config = [{ 'name': 'enabled', 'default': 0, 'type': 'enabler', + 'radio_group': 'nzb,torrent', }, { 'name': 'directory', 'type': 'directory', 'description': 'Directory where the .nzb (or .torrent) file is saved to.', }, + { + 'name': 'use_for', + 'label': 'Use for', + 'default': 'both', + 'type': 'dropdown', + 'values': [('nzbs & torrents', 'both'), ('nzb', 'nzb'), ('torrent', 'torrent')], + }, ], } ], diff --git a/couchpotato/core/downloaders/blackhole/main.py b/couchpotato/core/downloaders/blackhole/main.py index 79b1cefc..f4357e72 100644 --- a/couchpotato/core/downloaders/blackhole/main.py +++ b/couchpotato/core/downloaders/blackhole/main.py @@ -12,7 +12,7 @@ class Blackhole(Downloader): def download(self, data = {}, movie = {}): - if self.isDisabled() or not self.isCorrectType(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') diff --git a/couchpotato/core/downloaders/nzbget/__init__.py b/couchpotato/core/downloaders/nzbget/__init__.py index 1acf097d..4dff15e8 100644 --- a/couchpotato/core/downloaders/nzbget/__init__.py +++ b/couchpotato/core/downloaders/nzbget/__init__.py @@ -16,6 +16,7 @@ config = [{ 'name': 'enabled', 'default': 0, 'type': 'enabler', + 'radio_group': 'nzb', }, { 'name': 'host', diff --git a/couchpotato/core/downloaders/sabnzbd/__init__.py b/couchpotato/core/downloaders/sabnzbd/__init__.py index 028f139f..79fd9035 100644 --- a/couchpotato/core/downloaders/sabnzbd/__init__.py +++ b/couchpotato/core/downloaders/sabnzbd/__init__.py @@ -16,6 +16,7 @@ config = [{ 'name': 'enabled', 'default': 0, 'type': 'enabler', + 'radio_group': 'nzb', }, { 'name': 'host', diff --git a/couchpotato/core/downloaders/transmission/__init__.py b/couchpotato/core/downloaders/transmission/__init__.py index bc695a3e..fbd89a58 100644 --- a/couchpotato/core/downloaders/transmission/__init__.py +++ b/couchpotato/core/downloaders/transmission/__init__.py @@ -16,6 +16,7 @@ config = [{ 'name': 'enabled', 'default': 0, 'type': 'enabler', + 'radio_group': 'torrent', }, { 'name': 'host',