1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-17 08:25:25 +08:00

Merge pull request #157 from Axun/patch-1

Update huya.py
This commit is contained in:
乌帮图 2021-05-01 09:11:04 +08:00 committed by GitHub
commit 688c468e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,7 @@ class HuYa:
}
response = requests.get(url=room_url, headers=header).text
livelineurl = re.findall(r'liveLineUrl = "([\s\S]*?)";', response)[0]
livelineurl = base64.b64decode(livelineurl).decode('utf-8')
if livelineurl:
if 'replay' in livelineurl:
real_url = {