Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix} engine chinaso - parse_images `ImageInfo` key error (#5175)

Butui Hu09500459feff
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://"),