mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
fix: update blued stream fetch
This commit is contained in:
parent
d860023808
commit
c40a10235d
6
main.py
6
main.py
@ -586,9 +586,8 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
|
|||||||
port_info = asyncio.run(stream.get_bilibili_stream_url(
|
port_info = asyncio.run(stream.get_bilibili_stream_url(
|
||||||
json_data, video_quality=record_quality, cookies=bili_cookie, proxy_addr=proxy_address))
|
json_data, video_quality=record_quality, cookies=bili_cookie, proxy_addr=proxy_address))
|
||||||
|
|
||||||
elif record_url.find("https://www.redelight.cn/") > -1 or \
|
elif record_url.find("http://xhslink.com/") > -1 or \
|
||||||
record_url.find("https://www.xiaohongshu.com/") > -1 or \
|
record_url.find("https://www.xiaohongshu.com/") > -1:
|
||||||
record_url.find("http://xhslink.com/") > -1:
|
|
||||||
platform = '小红书直播'
|
platform = '小红书直播'
|
||||||
with semaphore:
|
with semaphore:
|
||||||
port_info = asyncio.run(spider.get_xhs_stream_url(
|
port_info = asyncio.run(spider.get_xhs_stream_url(
|
||||||
@ -1106,6 +1105,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
|
|||||||
'17Live': 'referer:https://17.live/en/live/6302408',
|
'17Live': 'referer:https://17.live/en/live/6302408',
|
||||||
'浪Live': 'referer:https://www.lang.live',
|
'浪Live': 'referer:https://www.lang.live',
|
||||||
'shopee': f'origin:{live_domain}',
|
'shopee': f'origin:{live_domain}',
|
||||||
|
'Blued直播': 'referer:https://app.blued.cn'
|
||||||
}
|
}
|
||||||
|
|
||||||
headers = record_headers.get(platform)
|
headers = record_headers.get(platform)
|
||||||
|
|||||||
@ -804,7 +804,7 @@ async def get_blued_stream_url(url: str, proxy_addr: OptionalStr = None, cookies
|
|||||||
result = {"anchor_name": anchor_name, "is_live": False}
|
result = {"anchor_name": anchor_name, "is_live": False}
|
||||||
|
|
||||||
if live_status:
|
if live_status:
|
||||||
m3u8_url = "http:" + json_data['liveInfo']['liveUrl']
|
m3u8_url = json_data['liveInfo']['liveUrl']
|
||||||
result |= {"is_live": True, "m3u8_url": m3u8_url, 'record_url': m3u8_url}
|
result |= {"is_live": True, "m3u8_url": m3u8_url, 'record_url': m3u8_url}
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user