mirror of
https://github.com/wbt5/real-url.git
synced 2025-08-03 17:02:48 +08:00
Compare commits
No commits in common. "da727ccf7776e80deb7ffaf17181ea15f726aeab" and "3aeaa5ae55979710c57ad09fd0b716e031c3bb82" have entirely different histories.
da727ccf77
...
3aeaa5ae55
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
|
||||||
### 2020.10.17:修复:西瓜直播、YY直播。
|
### 2020.10.17:修复:西瓜直播。
|
||||||
|
|
||||||
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