summaryrefslogtreecommitdiff
path: root/searx/engines/startpage.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2023-01-28 10:24:14 +0000
committerAlexandre Flament <alex@al-f.net>2023-01-28 10:24:14 +0000
commit37addec69e4211aac6b2302c82cb5c5c7b1d5e04 (patch)
tree52ce990fd7903fe9ae5407274057153f62ab9654 /searx/engines/startpage.py
parent6b71721ce80948d72ad656620a35507b73fc55d4 (diff)
downloadsearxng-37addec69e4211aac6b2302c82cb5c5c7b1d5e04.tar.gz
searxng-37addec69e4211aac6b2302c82cb5c5c7b1d5e04.zip
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
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r--searx/engines/startpage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index 24aa59d03..f857f7b6d 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -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):