mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
fix: update bilibili live data fetch
This commit is contained in:
parent
d787838ed2
commit
effcfcc76f
@ -590,7 +590,7 @@ async def get_bilibili_room_info_h5(url: str, proxy_addr: OptionalStr = None, co
|
|||||||
api = f'https://api.live.bilibili.com/xlive/web-room/v1/index/getH5InfoByRoom?room_id={room_id}'
|
api = f'https://api.live.bilibili.com/xlive/web-room/v1/index/getH5InfoByRoom?room_id={room_id}'
|
||||||
json_str = await async_req(api, proxy_addr=proxy_addr, headers=headers)
|
json_str = await async_req(api, proxy_addr=proxy_addr, headers=headers)
|
||||||
room_info = json.loads(json_str)
|
room_info = json.loads(json_str)
|
||||||
title = room_info['data']['room_info']['title']
|
title = room_info['data']['room_info']['title'] if room_info.get('data') else ''
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user