1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-12-17 07:20:27 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
wbt5
eeb1983a1e 修改文件名 2020-05-30 20:17:18 +08:00
wbt5
2d6da4fd1b 更新虎牙 2020-05-30 20:16:50 +08:00
wbt5
54b721a6e5 更新虎牙 2020-05-30 20:16:19 +08:00
7 changed files with 5 additions and 3 deletions

View File

@ -18,9 +18,11 @@
## 更新
### 2020.05.25更新哔哩哔哩直播。
### 2020.05.30更新虎牙直播。
- 默认获取最高画质,不同清晰度取决去请求参数中的 qn。
2020.05.25:更新哔哩哔哩直播。
- 默认获取最高画质,不同清晰度取决于请求参数中的 qn。
- 增加 .m3u8 格式播放链接的获取方法。
2020.05.23更新17直播、虎牙直播

View File

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:

View File

View File

View File