1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-07-30 21:32:14 +08:00

fix huya danmu

This commit is contained in:
bbll 2021-07-02 16:38:54 +08:00 committed by GitHub
parent 129eac61d0
commit 5e5b43d55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,11 +22,11 @@ class Huya:
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as resp:
room_page = await resp.text()
m = re.search(r"ayyuid: +'([0-9]+)'", room_page, re.MULTILINE)
m = re.search(r"lYyid\":([0-9]+)", room_page, re.MULTILINE)
ayyuid = m.group(1)
m = re.search(r"TOPSID += +'([0-9]+)'", room_page, re.MULTILINE)
m = re.search(r"lChannelId\":([0-9]+)", room_page, re.MULTILINE)
tid = m.group(1)
m = re.search(r"SUBSID += +'([0-9]+)'", room_page, re.MULTILINE)
m = re.search(r"lSubChannelId\":([0-9]+)", room_page, re.MULTILINE)
sid = m.group(1)
oos = tarscore.TarsOutputStream()