From e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 20 Feb 2024 10:51:58 +0100 Subject: [refactor] images: add resolution, image format and filesize fields Co-authored-by: Markus Heiser --- searx/engines/qwant.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/engines/qwant.py') diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index 1f8556cf1..775a11292 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -265,6 +265,8 @@ def parse_web_api(resp): 'template': 'images.html', 'thumbnail_src': thumbnail, 'img_src': img_src, + 'resolution': f"{item['width']} x {item['height']}", + 'img_format': item.get('thumb_type'), } ) -- cgit v1.2.3