From 916739d6b41957c3f277dea7c1429488560a3784 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 12 May 2024 17:52:52 +0200 Subject: [mod] simple theme: drop img_src from default results The use of img_src AND thumbnail in the default results makes no sense (only a thumbnail is needed). In the current state this is rather confusing, because img_src is displayed like a thumbnail (small) and thumbnail is displayed like an image (large). Signed-off-by: Markus Heiser --- searx/engines/apkmirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/engines/apkmirror.py') diff --git a/searx/engines/apkmirror.py b/searx/engines/apkmirror.py index 93d093a60..d9f291c4f 100644 --- a/searx/engines/apkmirror.py +++ b/searx/engines/apkmirror.py @@ -53,8 +53,8 @@ def response(resp): url = base_url + link.attrib.get('href') + '#downloads' title = extract_text(link) - img_src = base_url + eval_xpath_getindex(result, './/img/@src', 0) - res = {'url': url, 'title': title, 'img_src': img_src} + thumbnail = base_url + eval_xpath_getindex(result, './/img/@src', 0) + res = {'url': url, 'title': title, 'thumbnail': thumbnail} results.append(res) -- cgit v1.2.3