[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:
Bnyro
2026-07-29 17:55:53 +02:00
parent 8f452ee892
commit 86008c9dd6
3 changed files with 9 additions and 1 deletions

View File

@@ -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.