mirror of
https://github.com/wbt5/real-url.git
synced 2025-08-02 15:44:49 +08:00
Compare commits
2 Commits
3aeaa5ae55
...
da727ccf77
Author | SHA1 | Date | |
---|---|---|---|
|
da727ccf77 | ||
|
ac773f7bb7 |
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
|
||||||
### 2020.10.17:修复:西瓜直播。
|
### 2020.10.17:修复:西瓜直播、YY直播。
|
||||||
|
|
||||||
2020.09.26:更新:虎牙直播源;注释掉未完成的 YY 直播弹幕功能。
|
2020.09.26:更新:虎牙直播源;注释掉未完成的 YY 直播弹幕功能。
|
||||||
|
|
||||||
|
2
yy.py
2
yy.py
@ -25,7 +25,7 @@ class YY:
|
|||||||
if data.get('hls', 0):
|
if data.get('hls', 0):
|
||||||
xa = data['audio']
|
xa = data['audio']
|
||||||
xv = data['video']
|
xv = data['video']
|
||||||
xv = re.sub(r'0_\d+_0', '0_0_0', xv)
|
xv = re.sub(r'_0_\d+_0', '_0_0_0', xv)
|
||||||
url = 'https://interface.yy.com/hls/get/stream/15013/{}/15013/{}?source=h5player&type=m3u8'.format(xv, xa)
|
url = 'https://interface.yy.com/hls/get/stream/15013/{}/15013/{}?source=h5player&type=m3u8'.format(xv, xa)
|
||||||
res = s.get(url).json()
|
res = s.get(url).json()
|
||||||
real_url = res['hls']
|
real_url = res['hls']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user