Option to force search
This commit is contained in:
1 parent
7f24563bba
commit
250236bd25
3 files changed
+9
-8
No files matched your search
@@ -94,13 +94,6 @@ config = [{
|
|||||||
'label': 'File CHMOD',
|
'label': 'File CHMOD',
|
||||||
'description': 'Same as Folder CHMOD but for files',
|
'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.',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -40,6 +40,14 @@ config = [{
|
|||||||
'type': 'dropdown',
|
'type': 'dropdown',
|
||||||
'values': [('usenet & torrents', 'both'), ('usenet', 'nzb'), ('torrents', 'torrent')],
|
'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',
|
'tab': 'searcher',
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class Searcher(Plugin):
|
|||||||
|
|
||||||
ret = False
|
ret = False
|
||||||
for quality_type in movie['profile']['types']:
|
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))
|
log.info('Too early to search for %s, %s', (quality_type['quality']['identifier'], default_title))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user