1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

Merge pull request #986 from dalf/fix-startpage-fetch_supported_languages

fix startpage: update XPath in _fetch_supported_languages
This commit is contained in:
Markus Heiser 2022-03-19 14:49:22 +01:00 committed by GitHub
commit 7625da9fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {}