summaryrefslogtreecommitdiff
path: root/searx/engines/startpage.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-03-19 14:16:37 +0100
committerAlexandre Flament <alex@al-f.net>2022-03-19 14:16:37 +0100
commit378b29be2f943242915a2e489087eaaf9e39d14f (patch)
treee0ab06d499e8e8980a60094de1df8751de489020 /searx/engines/startpage.py
parent6ccd557650a0892a3c59ac157a781f9a12beb56e (diff)
downloadsearxng-378b29be2f943242915a2e489087eaaf9e39d14f.tar.gz
searxng-378b29be2f943242915a2e489087eaaf9e39d14f.zip
fix startpage: update XPath in _fetch_supported_languages
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r--searx/engines/startpage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index cf6872717..7b87808b9 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -245,7 +245,7 @@ def _fetch_supported_languages(resp):
dom = html.fromstring(resp.text)
sp_lang_names = []
- for option in dom.xpath('//form[@id="settings-form"]//select[@name="language"]/option'):
+ for option in dom.xpath('//form[@name="settings"]//select[@name="language"]/option'):
sp_lang_names.append((option.get('value'), extract_text(option).lower()))
supported_languages = {}