From 250236bd257dc143f82c7dd868f3aea62359de5a Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 19 Mar 2013 23:12:47 +0100 Subject: [PATCH] Option to force search --- couchpotato/core/_base/_core/__init__.py | 7 ------- couchpotato/core/plugins/searcher/__init__.py | 8 ++++++++ couchpotato/core/plugins/searcher/main.py | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/couchpotato/core/_base/_core/__init__.py b/couchpotato/core/_base/_core/__init__.py index 8b24ca21..c8c3fda6 100644 --- a/couchpotato/core/_base/_core/__init__.py +++ b/couchpotato/core/_base/_core/__init__.py @@ -94,13 +94,6 @@ config = [{ 'label': 'File CHMOD', 'description': 'Same as Folder CHMOD but for files', }, - { - 'name': 'could_be_released', - 'default': 1, - 'type': 'bool', - 'label': 'Check Released', - 'description': 'Don\'t search if not released yet.', - }, ], }, ], diff --git a/couchpotato/core/plugins/searcher/__init__.py b/couchpotato/core/plugins/searcher/__init__.py index a6dd6913..90cece46 100644 --- a/couchpotato/core/plugins/searcher/__init__.py +++ b/couchpotato/core/plugins/searcher/__init__.py @@ -40,6 +40,14 @@ config = [{ 'type': 'dropdown', 'values': [('usenet & torrents', 'both'), ('usenet', 'nzb'), ('torrents', 'torrent')], }, + { + 'name': 'always_search', + 'default': False, + 'advanced': True, + 'type': 'bool', + 'label': 'Always search', + 'description': 'Search for movies even before there is a ETA. Enabling this will probably get you a lot of fakes.', + }, ], }, { 'tab': 'searcher', diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 68a4eabe..b4c4937a 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -157,7 +157,7 @@ class Searcher(Plugin): ret = False for quality_type in movie['profile']['types']: - if Env.setting('could_be_released') and not self.couldBeReleased(quality_type['quality']['identifier'] in pre_releases, release_dates): + if not self.conf('always_search') and not self.couldBeReleased(quality_type['quality']['identifier'] in pre_releases, release_dates): log.info('Too early to search for %s, %s', (quality_type['quality']['identifier'], default_title)) continue