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

Update huya.py

b64decode
This commit is contained in:
Crab 2021-04-20 18:49:29 +08:00 committed by GitHub
parent c1119deda9
commit fcaa6eca63
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 = {