mirror of
https://github.com/wbt5/real-url.git
synced 2025-07-30 13:22:12 +08:00
Update huya.py
b64decode
This commit is contained in:
parent
c1119deda9
commit
fcaa6eca63
1
huya.py
1
huya.py
@ -24,6 +24,7 @@ class HuYa:
|
|||||||
}
|
}
|
||||||
response = requests.get(url=room_url, headers=header).text
|
response = requests.get(url=room_url, headers=header).text
|
||||||
livelineurl = re.findall(r'liveLineUrl = "([\s\S]*?)";', response)[0]
|
livelineurl = re.findall(r'liveLineUrl = "([\s\S]*?)";', response)[0]
|
||||||
|
livelineurl = base64.b64decode(livelineurl).decode('utf-8')
|
||||||
if livelineurl:
|
if livelineurl:
|
||||||
if 'replay' in livelineurl:
|
if 'replay' in livelineurl:
|
||||||
real_url = {
|
real_url = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user