Option to force search

This commit is contained in:
Ruud
2013-03-19 23:12:47 +01:00
parent 7f24563bba
commit 250236bd25
3 changed files with 9 additions and 8 deletions

View File

@@ -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.',
},
],
},
],

View File

@@ -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',

View File

@@ -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