fix douyin stream fetch (#1190)

This commit is contained in:
Hmily 2025-08-27 13:55:22 +08:00 committed by GitHub
parent be2c3a393f
commit a328c6a1c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,9 @@ async def get_douyin_app_stream_data(url: str, proxy_addr: OptionalStr = None, c
"browser_platform": "Win32",
"browser_name": "Chrome",
"browser_version": "116.0.0.0",
"web_rid": web_rid
"web_rid": web_rid,
'msToken': '',
'a_bogus': ''
}
api = f'https://live.douyin.com/webcast/room/web/enter/?{urllib.parse.urlencode(params)}'
@ -3230,4 +3232,4 @@ async def get_picarto_stream_url(url: str, proxy_addr: OptionalStr = None, cooki
title = json_data['channel']['title']
m3u8_url = f"https://1-edge1-us-newyork.picarto.tv/stream/hls/golive+{anchor_name}/index.m3u8"
result |= {'is_live': True, 'title': title, 'm3u8_url': m3u8_url, 'record_url': m3u8_url}
return result
return result