mirror of
https://github.com/wbt5/real-url.git
synced 2025-06-17 08:25:25 +08:00
更新虎牙
This commit is contained in:
parent
ca70bf46a9
commit
54b721a6e5
2
huya.py
2
huya.py
@ -20,7 +20,7 @@ def get_real_url(room_id):
|
||||
if 'replay' in liveLineUrl:
|
||||
return '直播录像:' + liveLineUrl
|
||||
else:
|
||||
real_url = ["https:" + liveLineUrl.replace('_2500', ''), "https:" + liveLineUrl]
|
||||
real_url = ["https:" + re.sub(r'_\d{4}.m3u8', '.m3u8', liveLineUrl), "https:" + liveLineUrl]
|
||||
else:
|
||||
real_url = '未开播或直播间不存在'
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user