mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[refactor] images: add resolution, image format and filesize fields
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -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'],
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user