summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/selfhst.py7
-rw-r--r--searx/settings.yml1
2 files changed, 3 insertions, 5 deletions
diff --git a/searx/engines/selfhst.py b/searx/engines/selfhst.py
index f5ba3a136..5c79324fc 100644
--- a/searx/engines/selfhst.py
+++ b/searx/engines/selfhst.py
@@ -14,12 +14,11 @@ about = {
categories = ['images', 'icons']
-icons_list_url = 'https://cdn.selfh.st/directory/icons.json'
-icons_cdn_base_url = 'https://cdn.jsdelivr.net'
+cdn_base_url = 'https://cdn.jsdelivr.net/gh/selfhst/icons'
def request(query, params):
- params['url'] = icons_list_url
+ params['url'] = f"{cdn_base_url}/index.json"
params['query'] = query
return params
@@ -39,7 +38,7 @@ def response(resp):
img_format = format_name.lower()
break
- img_src = f'{icons_cdn_base_url}/gh/selfhst/icons/{img_format}/{item["Reference"]}.{img_format}'
+ img_src = f'{cdn_base_url}/{img_format}/{item["Reference"]}.{img_format}'
result = {
'template': 'images.html',
'url': img_src,
diff --git a/searx/settings.yml b/searx/settings.yml
index 0cd293d7e..a3455815d 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1869,7 +1869,6 @@ engines:
- name: selfhst icons
engine: selfhst
shortcut: si
- inactive: true
disabled: true
- name: sepiasearch