[feat] add bilibili support to get get_embeded_stream_url

This commit is contained in:
Austin-Olacsi
2025-03-05 18:15:32 -07:00
committed by Bnyro
parent 523d2a7683
commit 73d50f5748
2 changed files with 19 additions and 2 deletions

View File

@@ -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"]),
}
)