mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-25 21:36:46 +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)
|
||||
@ -3238,4 +3238,4 @@ async def get_picarto_stream_url(url: str, proxy_addr: OptionalStr = None, cooki
|
||||
title = json_data['channel']['title']
|
||||
m3u8_url = f"https://1-edge1-us-newyork.picarto.tv/stream/hls/golive+{anchor_name}/index.m3u8"
|
||||
result |= {'is_live': True, 'title': title, 'm3u8_url': m3u8_url, 'record_url': m3u8_url}
|
||||
return result
|
||||
return result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user