diff options
author | Alexandre Flament <alex@al-f.net> | 2022-03-19 14:16:37 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-03-19 14:16:37 +0100 |
commit | 378b29be2f943242915a2e489087eaaf9e39d14f (patch) | |
tree | e0ab06d499e8e8980a60094de1df8751de489020 /searx/engines/startpage.py | |
parent | 6ccd557650a0892a3c59ac157a781f9a12beb56e (diff) | |
download | searxng-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.py | 2 |
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 = {} |