mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
fix: update liveme room id match
This commit is contained in:
parent
63787f1743
commit
e80f1e653a
@ -2061,8 +2061,8 @@ async def get_liveme_stream_url(url: str, proxy_addr: OptionalStr = None, cookie
|
||||
if cookies:
|
||||
headers['Cookie'] = cookies
|
||||
|
||||
html_str = await async_req(url, proxy_addr=proxy_addr, headers=headers, abroad=True)
|
||||
if 'index.html' not in url:
|
||||
html_str = await async_req(url, proxy_addr=proxy_addr, headers=headers, abroad=True)
|
||||
match_url = re.search('<meta property="og:url" content="(.*?)">', html_str)
|
||||
if match_url:
|
||||
url = match_url.group(1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user