fix: update migu live parse (#1165)

This commit is contained in:
Hmily 2025-08-02 19:41:24 +08:00 committed by GitHub
parent d9f985303a
commit 5778ebc4b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',