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

Merge pull request #218 from bbllmaster/master

fix huya danmu
This commit is contained in:
乌帮图 2021-07-03 13:55:12 +08:00 committed by GitHub
commit 46f7eab963
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()