[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
1 changed files with 2 additions and 3 deletions

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