1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-17 08:25:25 +08:00

更新虎牙

This commit is contained in:
wbt5 2020-05-30 20:16:19 +08:00
parent ca70bf46a9
commit 54b721a6e5

View File

@ -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: