mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 11:19:54 +02:00
parent
2c6531b233
commit
6c06286251
2 changed files with 6 additions and 0 deletions
|
@ -70,11 +70,15 @@ def response(resp):
|
|||
title = get_text_from_json(video.get('title', {}))
|
||||
content = get_text_from_json(video.get('descriptionSnippet', {}))
|
||||
embedded = embedded_url.format(videoid=videoid)
|
||||
author = get_text_from_json(video.get('ownerText', {}))
|
||||
length = get_text_from_json(video.get('lengthText', {}))
|
||||
|
||||
# append result
|
||||
results.append({'url': url,
|
||||
'title': title,
|
||||
'content': content,
|
||||
'author': author,
|
||||
'length': length,
|
||||
'template': 'videos.html',
|
||||
'embedded': embedded,
|
||||
'thumbnail': thumbnail})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue