mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
add get_embeded_stream_url to searx.utils
This commit is contained in:
committed by
Markus Heiser
parent
f07ab6deb0
commit
cbf1e90979
@@ -34,6 +34,7 @@ from searx.engines.google import (
|
||||
detect_google_sorry,
|
||||
)
|
||||
from searx.enginelib.traits import EngineTraits
|
||||
from searx.utils import get_embeded_stream_url
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import logging
|
||||
@@ -125,6 +126,7 @@ def response(resp):
|
||||
'content': content,
|
||||
'author': pub_info,
|
||||
'thumbnail': thumbnail,
|
||||
'iframe_src': get_embeded_stream_url(url),
|
||||
'template': 'videos.html',
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user