diff options
author | Bnyro <bnyro@tutanota.com> | 2024-02-20 10:51:58 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-02-25 16:22:37 +0100 |
commit | e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1 (patch) | |
tree | be5443686fbe1ab6a6fa95e55a12a189230ba92e /searx/engines/flickr_noapi.py | |
parent | b683aa63fb3e1689c28bd4b762b4ad962e8e232c (diff) | |
download | searxng-e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1.tar.gz searxng-e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1.zip |
[refactor] images: add resolution, image format and filesize fields
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/flickr_noapi.py')
-rw-r--r-- | searx/engines/flickr_noapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |