diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-06-25 14:59:04 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-06-25 15:08:18 +0200 |
commit | 0f9926b89a1b3fba80390f06369dffe86b5865ae (patch) | |
tree | a58e89d5a4a518bb9a2c9410574a6d602d479952 /searx/engines/brave.py | |
parent | 39ffec87b7f8631bb0ab3ba74971fbd4bcfa7520 (diff) | |
download | searxng-0f9926b89a1b3fba80390f06369dffe86b5865ae.tar.gz searxng-0f9926b89a1b3fba80390f06369dffe86b5865ae.zip |
[fix] brave fetch_traits: layout of the settings page has changed
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/brave.py')
-rw-r--r-- | searx/engines/brave.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/brave.py b/searx/engines/brave.py index c5780a02c..fea7fb69d 100644 --- a/searx/engines/brave.py +++ b/searx/engines/brave.py @@ -426,7 +426,7 @@ def fetch_traits(engine_traits: EngineTraits): print("ERROR: response from Brave is not OK.") dom = html.fromstring(resp.text) # type: ignore - for option in dom.xpath('//div[@id="language-select"]//option'): + for option in dom.xpath('//section//option[@value="en-us"]/../option'): ui_lang = option.get('value') try: |