1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[mod] engine 'mwmbl: Update API URL

This commit is contained in:
Diagonalo 2024-04-09 20:40:44 +02:00 committed by Markus Heiser
parent f1a148f53e
commit 6458490271

View File

@ -17,7 +17,6 @@ from urllib.parse import urlencode
about = { about = {
"website": 'https://github.com/mwmbl/mwmbl', "website": 'https://github.com/mwmbl/mwmbl',
"official_api_documentation": 'https://api.mwmbl.org/docs',
"use_official_api": True, "use_official_api": True,
"require_api_key": False, "require_api_key": False,
"results": 'JSON', "results": 'JSON',
@ -25,11 +24,11 @@ about = {
paging = False paging = False
categories = ['general'] categories = ['general']
api_url = "https://api.mwmbl.org" api_url = "https://api.mwmbl.org/api/v1"
def request(query, params): def request(query, params):
params['url'] = f"{api_url}/search?{urlencode({'s': query})}" params['url'] = f"{api_url}/search/?{urlencode({'s': query})}"
return params return params