diff options
| author | Bnyro <bnyro@tutanota.com> | 2026-07-29 17:56:20 +0200 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-09-03 17:28:29 +0200 |
| commit | a1144dda3e97668c9d445022b7019c224cd4bb1e (patch) | |
| tree | 151b901ce7ada06ce75e17fecf8d7944f0c142da /searx/engines/brave.py | |
| parent | 86008c9dd609fb8e6e85699238ed50e9045c913a (diff) | |
[mod] engines: migrate video engines away from get_embedded_stream_url
Diffstat (limited to 'searx/engines/brave.py')
| -rw-r--r-- | searx/engines/brave.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/searx/engines/brave.py b/searx/engines/brave.py index dcc96609f..d20494e17 100644 --- a/searx/engines/brave.py +++ b/searx/engines/brave.py @@ -135,7 +135,7 @@ from searx.utils import ( eval_xpath_getindex, eval_xpath_list, extract_text, - get_embeded_stream_url, + get_embedded_stream_url, js_obj_str_to_json_str, js_obj_str_to_python, ) @@ -338,7 +338,7 @@ def _parse_search(resp: SXNG_Response) -> EngineResults: if len(video_tag): # In my tests a video tag in the WEB search was most often not a # video, except the ones from youtube .. - iframe_src = get_embeded_stream_url(url) + iframe_src = get_embedded_stream_url(url) if iframe_src: item["iframe_src"] = iframe_src item["template"] = "videos.html" @@ -406,9 +406,6 @@ def _parse_videos(json_resp: dict[str, t.Any]) -> EngineResults: ) if result["thumbnail"] is not None: item["thumbnail"] = result["thumbnail"]["src"] - iframe_src = get_embeded_stream_url(result["url"]) - if iframe_src: - item["iframe_src"] = iframe_src res.add(item) |
