summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2025-08-20 11:44:28 +0200
committerBnyro <bnyro@tutanota.com>2025-08-20 14:27:17 +0200
commit036968269071f12d0cf9f772a1861b15f8588e88 (patch)
tree87372fa2af13884489a7b5a2c2e962bc80d61955 /searx
parent6b57705e50875d9348c855700994395ce8a55b43 (diff)
[fix] selfhst icons: icon list url invalid, set to active
- the previous CDN icon list url no longer works - a list of all icons is mirrored to the JSDelivr CDN however - there's no reason to set the engine to inactive now that we use public CDNs
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