mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-25 21:36:46 +08:00
fix: update migu live parse (#1165)
This commit is contained in:
parent
d9f985303a
commit
5778ebc4b3
@ -3046,13 +3046,15 @@ async def get_migu_stream_url(url: str, proxy_addr: OptionalStr = None, cookies:
|
||||
api = f'https://vms-sc.miguvideo.com/vms-match/v6/staticcache/basic/basic-data/{web_id}/miguvideo'
|
||||
json_str = await async_req(api, proxy_addr=proxy_addr, headers=headers)
|
||||
json_data = json.loads(json_str)
|
||||
room_id = json_data['body']['pId']
|
||||
|
||||
anchor_name = json_data['body']['title']
|
||||
live_title = json_data['body'].get('title') + '-' + json_data['body'].get('detailPageTitle', '')
|
||||
room_id = json_data['body'].get('pId')
|
||||
|
||||
result = {"anchor_name": anchor_name, "is_live": False}
|
||||
if not room_id:
|
||||
raise RuntimeError("Room ID fetch error")
|
||||
return result
|
||||
|
||||
params = {
|
||||
'contId': room_id,
|
||||
'rateType': '3',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user