From 036968269071f12d0cf9f772a1861b15f8588e88 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 20 Aug 2025 11:44:28 +0200 Subject: [PATCH] [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 --- searx/engines/selfhst.py | 7 +++---- searx/settings.yml | 1 - 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