summaryrefslogtreecommitdiff
path: root/searx/engines/brave.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-02-20 10:51:58 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-02-25 16:22:37 +0100
commite76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1 (patch)
treebe5443686fbe1ab6a6fa95e55a12a189230ba92e /searx/engines/brave.py
parentb683aa63fb3e1689c28bd4b762b4ad962e8e232c (diff)
downloadsearxng-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/brave.py')
-rw-r--r--searx/engines/brave.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/brave.py b/searx/engines/brave.py
index 397af6094..8588c2efd 100644
--- a/searx/engines/brave.py
+++ b/searx/engines/brave.py
@@ -367,9 +367,10 @@ def _parse_images(json_resp):
'title': result['title'],
'content': result['description'],
'template': 'images.html',
- 'img_format': result['properties']['format'],
+ 'resolution': result['properties']['format'],
'source': result['source'],
'img_src': result['properties']['url'],
+ 'thumbnail_src': result['thumbnail']['src'],
}
result_list.append(item)