1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-07-30 21:32:14 +08:00

修改获取的链接为最高码率

This commit is contained in:
wbt5 2019-11-03 18:31:22 +08:00
parent 47d3693984
commit 57badc229b

View File

@ -16,6 +16,7 @@ def get_real_url(rid):
result = re.findall(pattern, response.text, re.I)
if result:
real_url = result[0]
real_url = re.sub(r'_\d{3,4}.m3u8', '.flv', result[0])
else:
real_url = '未开播或直播间不存在'
return real_url