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/qwant.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/qwant.py')
-rw-r--r-- | searx/engines/qwant.py | 2 |
1 files changed, 2 insertions, 0 deletions
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'), } ) |