mirror of
https://github.com/searxng/searxng.git
synced 2025-09-05 01:38:33 +02:00
[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
This commit is contained in:
parent
6b57705e50
commit
0369682690
2 changed files with 3 additions and 5 deletions
|
@ -14,12 +14,11 @@ about = {
|
||||||
categories = ['images', 'icons']
|
categories = ['images', 'icons']
|
||||||
|
|
||||||
|
|
||||||
icons_list_url = 'https://cdn.selfh.st/directory/icons.json'
|
cdn_base_url = 'https://cdn.jsdelivr.net/gh/selfhst/icons'
|
||||||
icons_cdn_base_url = 'https://cdn.jsdelivr.net'
|
|
||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
params['url'] = icons_list_url
|
params['url'] = f"{cdn_base_url}/index.json"
|
||||||
params['query'] = query
|
params['query'] = query
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
@ -39,7 +38,7 @@ def response(resp):
|
||||||
img_format = format_name.lower()
|
img_format = format_name.lower()
|
||||||
break
|
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 = {
|
result = {
|
||||||
'template': 'images.html',
|
'template': 'images.html',
|
||||||
'url': img_src,
|
'url': img_src,
|
||||||
|
|
|
@ -1869,7 +1869,6 @@ engines:
|
||||||
- name: selfhst icons
|
- name: selfhst icons
|
||||||
engine: selfhst
|
engine: selfhst
|
||||||
shortcut: si
|
shortcut: si
|
||||||
inactive: true
|
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
- name: sepiasearch
|
- name: sepiasearch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue