mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-25 21:36:46 +08:00
fix: update popkontv live stream fetch
This commit is contained in:
parent
019b30203e
commit
fd06bc89da
@ -683,7 +683,7 @@ async def get_bilibili_stream_data(url: str, qn: str = '10000', platform: str =
|
||||
extra = stream_data['url_info'][0]['extra']
|
||||
m3u8_url = host + base_url + extra
|
||||
return m3u8_url
|
||||
|
||||
|
||||
@trace_error_decorator
|
||||
async def get_xhs_stream_url(url: str, proxy_addr: OptionalStr = None, cookies: OptionalStr = None) -> dict:
|
||||
headers = {
|
||||
@ -1616,7 +1616,7 @@ async def get_popkontv_stream_url(
|
||||
'signId': username,
|
||||
'version': '4.6.2',
|
||||
}
|
||||
play_api = 'https://www.popkontv.com/api/proxy/broadcast/v1/castwatchonoff'
|
||||
play_api = 'https://www.popkontv.com/api/proxy/broadcast/v1/castwatchonoffguest'
|
||||
return await async_req(play_api, proxy_addr=proxy_addr, json_data=data, headers=header, abroad=True)
|
||||
|
||||
json_str = await fetch_data(headers, partner_code)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user