From 73d50f57481cfe2951c3231b2f5dfd70c0e6b49f Mon Sep 17 00:00:00 2001 From: Austin-Olacsi <138650713+Austin-Olacsi@users.noreply.github.com> Date: Wed, 5 Mar 2025 18:15:32 -0700 Subject: [feat] add bilibili support to get get_embeded_stream_url --- searx/engines/360search_videos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'searx/engines') diff --git a/searx/engines/360search_videos.py b/searx/engines/360search_videos.py index a4a59223d..27b3781b4 100644 --- a/searx/engines/360search_videos.py +++ b/searx/engines/360search_videos.py @@ -6,7 +6,7 @@ from urllib.parse import urlencode from datetime import datetime from searx.exceptions import SearxEngineAPIException -from searx.utils import html_to_text +from searx.utils import html_to_text, get_embeded_stream_url about = { "website": "https://tv.360kan.com/", @@ -58,6 +58,7 @@ def response(resp): 'template': 'videos.html', 'publishedDate': published_date, 'thumbnail': entry["cover_img"], + "iframe_src": get_embeded_stream_url(entry["play_url"]), } ) -- cgit v1.2.3