diff options
| author | Butui Hu <hot123tea123@gmail.com> | 2025-09-03 11:59:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 05:59:18 +0200 |
| commit | 09500459feffa414dc7a0601bdb164464a8b0454 (patch) | |
| tree | 07226a19a66bbf4ee5b93b9502833d009b747ec0 | |
| parent | b93cc2f9f8ac058152bab236b4b54b8197b942f6 (diff) | |
[fix} engine chinaso - parse_images `ImageInfo` key error (#5175)
Signed-off-by: Butui Hu <hot123tea123@gmail.com>
| -rw-r--r-- | searx/engines/chinaso.py | 2 |
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://"), |