mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02:00
search.suspended_time settings: bug fixes
* fix type in settings.yml: replace suspend_times by suspended_times * always use delay defined in settings.yml: * HTTP status 402 and 403: read the value from settings.yml instead of using the hardcoded value of 1 day. * startpage engine: CAPTCHA suspend the engine for one day instead of one week
This commit is contained in:
parent
6b71721ce8
commit
37addec69e
4 changed files with 11 additions and 7 deletions
|
@ -62,8 +62,7 @@ sc_code = ''
|
|||
def raise_captcha(resp):
|
||||
|
||||
if str(resp.url).startswith('https://www.startpage.com/sp/captcha'):
|
||||
# suspend CAPTCHA for 7 days
|
||||
raise SearxEngineCaptchaException(suspended_time=7 * 24 * 3600)
|
||||
raise SearxEngineCaptchaException()
|
||||
|
||||
|
||||
def get_sc_code(headers):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue