mirror of
https://github.com/wbt5/real-url.git
synced 2025-07-26 02:21:43 +08:00
commit
688c468e58
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