From 7075fc1324b9e56439789bf1c4069d7339f788d9 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 3 Jul 2021 20:12:47 +0200 Subject: [PATCH] [fix] brave engine: shows descriptions with their correct URLs BTW add about section to the YAML configuration It now shows descriptions with their correct URLs when there are videos in the search results, pulling content_xpath from snippet-description instead of snippet-content. Suggested-by: @eagle-dogtooth https://github.com/searx/searx/issues/2857#issuecomment-869119968 Signed-off-by: Markus Heiser --- searx/settings.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/searx/settings.yml b/searx/settings.yml index 384d55ca..bee57432 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1582,8 +1582,14 @@ engines: search_url: https://search.brave.com/search?q={query} url_xpath: //div[@class="snippet fdb"]/a/@href title_xpath: //span[@class="snippet-title"] - content_xpath: //div[@class="snippet-content"] + content_xpath: //p[1][@class="snippet-description"] categories: general + about: + website: https://brave.com/search/ + wikidata_id: Q22906900 + use_official_api: false + require_api_key: false + results: HTML # Doku engine lets you access to any Doku wiki instance: # A public one or a private/corporate one.