mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
fix: update bigo room url parse
This commit is contained in:
parent
aef87ce251
commit
52a782e0b8
@ -705,7 +705,7 @@ def get_bigo_stream_url(url: str, proxy_addr: Union[str, None] = None, cookies:
|
||||
web_url = re.search(
|
||||
'<meta data-n-head="ssr" data-hid="al:web:url" property="al:web:url" content="(.*?)">',
|
||||
html_str).group(1)
|
||||
room_id = re.search('&h=(\d+)(?=$|&)', web_url.replace('&', '&')).group(1)
|
||||
room_id = web_url.split('&h=')[-1]
|
||||
else:
|
||||
room_id = re.search('www.bigo.tv/cn/(\w+)', url).group(1)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user