mirror of
https://github.com/wbt5/real-url.git
synced 2025-07-27 11:00:32 +08:00
commit
f24c64ca4b
2
huya.py
2
huya.py
@ -42,7 +42,7 @@ def get_real_url(room_id):
|
|||||||
liveLineUrl = re.findall(r'liveLineUrl = "([\s\S]*?)";', response)[0]
|
liveLineUrl = re.findall(r'liveLineUrl = "([\s\S]*?)";', response)[0]
|
||||||
if liveLineUrl:
|
if liveLineUrl:
|
||||||
if 'replay' in liveLineUrl:
|
if 'replay' in liveLineUrl:
|
||||||
return '直播录像:' + liveLineUrl
|
return '直播录像:https:' + liveLineUrl
|
||||||
else:
|
else:
|
||||||
liveLineUrl = live(liveLineUrl)
|
liveLineUrl = live(liveLineUrl)
|
||||||
real_url = ["https:" + liveLineUrl, "https:" + re.sub(r'_\d{4}.m3u8', '.m3u8', liveLineUrl)]
|
real_url = ["https:" + liveLineUrl, "https:" + re.sub(r'_\d{4}.m3u8', '.m3u8', liveLineUrl)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user