mirror of
https://github.com/searxng/searxng.git
synced 2026-09-11 16:56:05 +00:00
[feat] results: automatically set embedded stream url for video results
Currently, many engines that provide video results call the same `get_embedded_stream_url` method for setting the `iframe_src`. There is no value in that because this logic is engine-specific and probably many video engines forgot to implement this. With these changes, it's done automatically, so engine implementors don't have to worry about setting an `iframe_src` (unless the engine explicitly has a field for it).
This commit is contained in:
@@ -592,7 +592,7 @@ def eval_xpath_getindex(
|
||||
return default
|
||||
|
||||
|
||||
def get_embeded_stream_url(url: str):
|
||||
def get_embedded_stream_url(url: str):
|
||||
"""
|
||||
Converts a standard video URL into its embed format. Supported services include Youtube,
|
||||
Facebook, Instagram, TikTok, Dailymotion, and Bilibili.
|
||||
|
||||
Reference in New Issue
Block a user