mirror of https://github.com/searxng/searxng.git
[fix] solidtorrents pagination
This commit is contained in:
parent
8172f89075
commit
cf8a6cf6db
|
@ -39,8 +39,7 @@ def request(query, params):
|
||||||
else:
|
else:
|
||||||
params['base_url'] = base_url
|
params['base_url'] = base_url
|
||||||
search_url = params['base_url'] + '/search?{query}'
|
search_url = params['base_url'] + '/search?{query}'
|
||||||
page = (params['pageno'] - 1) * 20
|
query = urlencode({'q': query, 'page': params['pageno']})
|
||||||
query = urlencode({'q': query, 'page': page})
|
|
||||||
params['url'] = search_url.format(query=query)
|
params['url'] = search_url.format(query=query)
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue