mirror of
https://github.com/wbt5/real-url.git
synced 2025-07-31 13:44:48 +08:00
fix huya danmu
This commit is contained in:
parent
129eac61d0
commit
5e5b43d55c
@ -22,11 +22,11 @@ class Huya:
|
|||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get(url, headers=headers) as resp:
|
async with session.get(url, headers=headers) as resp:
|
||||||
room_page = await resp.text()
|
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)
|
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)
|
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)
|
sid = m.group(1)
|
||||||
|
|
||||||
oos = tarscore.TarsOutputStream()
|
oos = tarscore.TarsOutputStream()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user