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/brave.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'searx/engines/brave.py') diff --git a/searx/engines/brave.py b/searx/engines/brave.py index 397af6094..8588c2efd 100644 --- a/searx/engines/brave.py +++ b/searx/engines/brave.py @@ -367,9 +367,10 @@ def _parse_images(json_resp): 'title': result['title'], 'content': result['description'], 'template': 'images.html', - 'img_format': result['properties']['format'], + 'resolution': result['properties']['format'], 'source': result['source'], 'img_src': result['properties']['url'], + 'thumbnail_src': result['thumbnail']['src'], } result_list.append(item) -- cgit v1.2.3