summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorButui Hu <hot123tea123@gmail.com>2025-09-03 11:59:18 +0800
committerGitHub <noreply@github.com>2025-09-03 05:59:18 +0200
commit09500459feffa414dc7a0601bdb164464a8b0454 (patch)
tree07226a19a66bbf4ee5b93b9502833d009b747ec0 /searx/engines
parentb93cc2f9f8ac058152bab236b4b54b8197b942f6 (diff)
[fix} engine chinaso - parse_images `ImageInfo` key error (#5175)
Signed-off-by: Butui Hu <hot123tea123@gmail.com>
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/chinaso.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/chinaso.py b/searx/engines/chinaso.py
index e63bf661e..97e79bbad 100644
--- a/searx/engines/chinaso.py
+++ b/searx/engines/chinaso.py
@@ -195,7 +195,7 @@ def parse_images(data):
{
'url': entry["web_url"],
'title': html_to_text(entry["title"]),
- 'content': html_to_text(entry["ImageInfo"]),
+ 'content': html_to_text(entry.get("ImageInfo", "")),
'template': 'images.html',
'img_src': entry["url"].replace("http://", "https://"),
'thumbnail_src': entry["largeimage"].replace("http://", "https://"),