mirror of
https://github.com/searxng/searxng.git
synced 2025-07-31 00:52:22 +02:00
[refactor] images: add resolution, image format and filesize fields
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
b683aa63fb
commit
e76ab1a4b3
15 changed files with 91 additions and 33 deletions
|
@ -122,7 +122,7 @@ def _images_response(json):
|
|||
'url': summary['refererurl'],
|
||||
'title': result['title'],
|
||||
'img_src': result['url'],
|
||||
'img_format': f"{summary['width']}x{summary['height']}",
|
||||
'resolution': f"{summary['width']}x{summary['height']}",
|
||||
'thumbnail_src': 'https://media.seekr.com/engine/rp/' + summary['tg'] + '/?src= ' + result['thumbnail'],
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue