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:
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)