From 4ab004e7f1d35b26d1d3a7b42e1b9ea97fc15f6c Mon Sep 17 00:00:00 2001 From: Justas Zabulionis <38244149+jazzzooo@users.noreply.github.com> Date: Thu, 14 Sep 2023 00:33:05 -0700 Subject: [PATCH] [fix] solidtorrents pagination --- searx/engines/solidtorrents.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/searx/engines/solidtorrents.py b/searx/engines/solidtorrents.py index 248716b2b..b933b568c 100644 --- a/searx/engines/solidtorrents.py +++ b/searx/engines/solidtorrents.py @@ -39,8 +39,7 @@ def request(query, params): else: params['base_url'] = base_url search_url = params['base_url'] + '/search?{query}' - page = (params['pageno'] - 1) * 20 - query = urlencode({'q': query, 'page': page}) + query = urlencode({'q': query, 'page': params['pageno']}) params['url'] = search_url.format(query=query) return params