mirror of https://github.com/searxng/searxng.git
[mod] engine 'mwmbl: Update API URL
This commit is contained in:
parent
f1a148f53e
commit
6458490271
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue