mirror of
https://github.com/searxng/searxng.git
synced 2025-09-08 03:08:32 +02:00
[fix} engine chinaso - parse_images ImageInfo
key error (#5175)
Signed-off-by: Butui Hu <hot123tea123@gmail.com>
This commit is contained in:
parent
b93cc2f9f8
commit
09500459fe
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ def parse_images(data):
|
||||||
{
|
{
|
||||||
'url': entry["web_url"],
|
'url': entry["web_url"],
|
||||||
'title': html_to_text(entry["title"]),
|
'title': html_to_text(entry["title"]),
|
||||||
'content': html_to_text(entry["ImageInfo"]),
|
'content': html_to_text(entry.get("ImageInfo", "")),
|
||||||
'template': 'images.html',
|
'template': 'images.html',
|
||||||
'img_src': entry["url"].replace("http://", "https://"),
|
'img_src': entry["url"].replace("http://", "https://"),
|
||||||
'thumbnail_src': entry["largeimage"].replace("http://", "https://"),
|
'thumbnail_src': entry["largeimage"].replace("http://", "https://"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue