1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-08-02 15:44:49 +08:00

Compare commits

..

No commits in common. "da727ccf7776e80deb7ffaf17181ea15f726aeab" and "3aeaa5ae55979710c57ad09fd0b716e031c3bb82" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
## 更新
### 2020.10.17:修复:西瓜直播、YY直播
### 2020.10.17:修复:西瓜直播。
2020.09.26:更新:虎牙直播源;注释掉未完成的 YY 直播弹幕功能。

2
yy.py
View File

@ -25,7 +25,7 @@ class YY:
if data.get('hls', 0):
xa = data['audio']
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)
res = s.get(url).json()
real_url = res['hls']