From 7f24563bba4343034b41aba76004c3fa22751c2b Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Mon, 18 Mar 2013 11:46:17 +0100 Subject: [PATCH] Add Advanced Option to deactivate "Too early to search for ..." Advanced Option: Check Released --- couchpotato/core/_base/_core/__init__.py | 7 +++++++ couchpotato/core/plugins/searcher/main.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/_base/_core/__init__.py b/couchpotato/core/_base/_core/__init__.py index c8c3fda6..8b24ca21 100644 --- a/couchpotato/core/_base/_core/__init__.py +++ b/couchpotato/core/_base/_core/__init__.py @@ -94,6 +94,13 @@ 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/main.py b/couchpotato/core/plugins/searcher/main.py index 1f320eab..68a4eabe 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 not self.couldBeReleased(quality_type['quality']['identifier'] in pre_releases, release_dates): + if Env.setting('could_be_released') 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