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/flickr_noapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/engines/flickr_noapi.py') diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py index 5299c604f..ebd61570f 100644 --- a/searx/engines/flickr_noapi.py +++ b/searx/engines/flickr_noapi.py @@ -110,7 +110,7 @@ def response(resp): # pylint: disable=too-many-branches continue img_src = size_data['url'] - img_format = f"{size_data['width']} x {size_data['height']}" + resolution = f"{size_data['width']} x {size_data['height']}" # For a bigger thumbnail, keep only the url_z, not the url_n if 'n' in photo['sizes']['data']: @@ -131,7 +131,7 @@ def response(resp): # pylint: disable=too-many-branches 'img_src': img_src, 'thumbnail_src': thumbnail_src, 'source': source, - 'img_format': img_format, + 'resolution': resolution, 'template': 'images.html', } result['author'] = author.encode(errors='ignore').decode() -- cgit v1.2.3