mirror of
https://github.com/wbt5/real-url.git
synced 2025-12-17 07:20:27 +08:00
Compare commits
3 Commits
ca70bf46a9
...
eeb1983a1e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eeb1983a1e | ||
|
|
2d6da4fd1b | ||
|
|
54b721a6e5 |
@ -18,9 +18,11 @@
|
||||
|
||||
## 更新
|
||||
|
||||
### 2020.05.25:更新哔哩哔哩直播。
|
||||
### 2020.05.30:更新虎牙直播。
|
||||
|
||||
- 默认获取最高画质,不同清晰度取决去请求参数中的 qn。
|
||||
2020.05.25:更新哔哩哔哩直播。
|
||||
|
||||
- 默认获取最高画质,不同清晰度取决于请求参数中的 qn。
|
||||
- 增加 .m3u8 格式播放链接的获取方法。
|
||||
|
||||
2020.05.23:更新17直播、虎牙直播
|
||||
|
||||
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