fix: update liveme room id match

This commit is contained in:
Hmily 2025-08-27 18:15:45 +08:00 committed by GitHub
parent 63787f1743
commit e80f1e653a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2061,8 +2061,8 @@ async def get_liveme_stream_url(url: str, proxy_addr: OptionalStr = None, cookie
if cookies: if cookies:
headers['Cookie'] = cookies headers['Cookie'] = cookies
html_str = await async_req(url, proxy_addr=proxy_addr, headers=headers, abroad=True)
if 'index.html' not in url: 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) match_url = re.search('<meta property="og:url" content="(.*?)">', html_str)
if match_url: if match_url:
url = match_url.group(1) 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'] title = json_data['channel']['title']
m3u8_url = f"https://1-edge1-us-newyork.picarto.tv/stream/hls/golive+{anchor_name}/index.m3u8" 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} result |= {'is_live': True, 'title': title, 'm3u8_url': m3u8_url, 'record_url': m3u8_url}
return result return result