Browse Source

[fix] fix the about section of some engines

Alexandre Flament 3 years ago
parent
commit
8961131497
3 changed files with 13 additions and 3 deletions
  1. 10 0
      searx/engines/bandcamp.py
  2. 2 2
      searx/engines/photon.py
  3. 1 1
      searx/settings.yml

+ 10 - 0
searx/engines/bandcamp.py

@@ -12,6 +12,16 @@ from dateutil.parser import parse as dateparse
 from lxml import html
 from lxml import html
 from searx.utils import extract_text
 from searx.utils import extract_text
 
 
+# about
+about = {
+    "website": 'https://bandcamp.com/',
+    "wikidata_id": 'Q545966',
+    "official_api_documentation": 'https://bandcamp.com/developer',
+    "use_official_api": False,
+    "require_api_key": False,
+    "results": 'HTML',
+}
+
 categories = ['music']
 categories = ['music']
 paging = True
 paging = True
 
 

+ 2 - 2
searx/engines/photon.py

@@ -9,9 +9,9 @@ from searx.utils import searx_useragent
 
 
 # about
 # about
 about = {
 about = {
-    "website": 'https://photon.komoot.de',
+    "website": 'https://photon.komoot.io',
     "wikidata_id": None,
     "wikidata_id": None,
-    "official_api_documentation": 'https://photon.komoot.de/',
+    "official_api_documentation": 'https://photon.komoot.io/',
     "use_official_api": True,
     "use_official_api": True,
     "require_api_key": False,
     "require_api_key": False,
     "results": 'JSON',
     "results": 'JSON',

+ 1 - 1
searx/settings.yml

@@ -1618,7 +1618,7 @@ engines:
     categories: general
     categories: general
     about:
     about:
       website: https://brave.com/search/
       website: https://brave.com/search/
-      wikidata_id: Q22906900
+      wikidata_id: Q107355971
       use_official_api: false
       use_official_api: false
       require_api_key: false
       require_api_key: false
       results: HTML
       results: HTML