mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
add get_embeded_stream_url to searx.utils
This commit is contained in:
parent
f07ab6deb0
commit
cbf1e90979
5 changed files with 56 additions and 14 deletions
|
|
@ -61,6 +61,7 @@ from searx.utils import (
|
|||
eval_xpath,
|
||||
eval_xpath_list,
|
||||
extract_text,
|
||||
get_embeded_stream_url,
|
||||
)
|
||||
|
||||
traits: EngineTraits
|
||||
|
|
@ -303,6 +304,7 @@ def parse_web_api(resp):
|
|||
'title': title,
|
||||
'url': res_url,
|
||||
'content': content,
|
||||
'iframe_src': get_embeded_stream_url(res_url),
|
||||
'publishedDate': pub_date,
|
||||
'thumbnail': thumbnail,
|
||||
'template': 'videos.html',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue