Browse Source

[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 <markus.heiser@darmarit.de>
Markus Heiser 3 years ago
parent
commit
9d97b2e854
1 changed files with 7 additions and 1 deletions
  1. 7 1
      searx/settings.yml

+ 7 - 1
searx/settings.yml

@@ -1510,8 +1510,14 @@ engines:
     search_url: https://search.brave.com/search?q={query}
     search_url: https://search.brave.com/search?q={query}
     url_xpath: //div[@class="snippet fdb"]/a/@href
     url_xpath: //div[@class="snippet fdb"]/a/@href
     title_xpath: //span[@class="snippet-title"]
     title_xpath: //span[@class="snippet-title"]
-    content_xpath: //div[@class="snippet-content"]
+    content_xpath: //p[1][@class="snippet-description"]
     categories: general
     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:
 # Doku engine lets you access to any Doku wiki instance:
 # A public one or a privete/corporate one.
 # A public one or a privete/corporate one.