mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
d
This commit is contained in:
parent
cec399597e
commit
033c1db967
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ def response(resp):
|
||||||
result['snippet'] = result['snippet'].replace("此条目介绍的作品或其衍生作品中有至少一项尚未完结。","").replace("萌娘百科不是新闻的搜集处。欢迎在情报相对明朗并确认资料来源准确性后编辑更新。","")
|
result['snippet'] = result['snippet'].replace("此条目介绍的作品或其衍生作品中有至少一项尚未完结。","").replace("萌娘百科不是新闻的搜集处。欢迎在情报相对明朗并确认资料来源准确性后编辑更新。","")
|
||||||
result['snippet'] = result['snippet'].strip()
|
result['snippet'] = result['snippet'].strip()
|
||||||
# append result
|
# append result
|
||||||
results.append({'url': url, 'title': result['title'], 'content': result['snippet']})
|
results.append({'url': url, 'title': result['title'] + ' - 萌娘百科', 'content': result['snippet']})
|
||||||
|
|
||||||
# return results
|
# return results
|
||||||
return results
|
return results
|
||||||
|
|
|
@ -21,7 +21,7 @@ def response(resp):
|
||||||
for item in data:
|
for item in data:
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
"title": item.get("name"),
|
"title": item.get("name") + ' - TMDB',
|
||||||
"url": f"https://www.themoviedb.org/{item.get('media_type')}/{item.get('id')}",
|
"url": f"https://www.themoviedb.org/{item.get('media_type')}/{item.get('id')}",
|
||||||
"content": item.get("overview"),
|
"content": item.get("overview"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue