From 0f9926b89a1b3fba80390f06369dffe86b5865ae Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 25 Jun 2024 14:59:04 +0200 Subject: [PATCH] [fix] brave fetch_traits: layout of the settings page has changed Signed-off-by: Markus Heiser --- searx/engines/brave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: