diff options
author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-03-19 14:49:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 14:49:22 +0100 |
commit | 7625da9fa02d0c2bb2c2bc618a41b245b9e2987f (patch) | |
tree | 9ff5b1694db9b7aa3807240df277080ad16892ab | |
parent | b6920351200dc7d56ba4529758073ea2da219004 (diff) | |
parent | 378b29be2f943242915a2e489087eaaf9e39d14f (diff) | |
download | searxng-7625da9fa02d0c2bb2c2bc618a41b245b9e2987f.tar.gz searxng-7625da9fa02d0c2bb2c2bc618a41b245b9e2987f.zip |
Merge pull request #986 from dalf/fix-startpage-fetch_supported_languages
fix startpage: update XPath in _fetch_supported_languages
-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 = {} |