summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2026-07-29 17:55:53 +0200
committerBnyro <bnyro@tutanota.com>2026-09-03 17:28:29 +0200
commit86008c9dd609fb8e6e85699238ed50e9045c913a (patch)
tree558a3c7b3dce232362f3ea2a4f525b68e425a007 /searx/utils.py
parent8f452ee89293d9a752a776f4c33f5a5f124fff97 (diff)
[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).
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/utils.py b/searx/utils.py
index 1ebfda12f..9c70c8cc4 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -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.