1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-17 08:25:25 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
wbt5
da727ccf77 update 2020-10-17 20:55:06 +08:00
wbt5
ac773f7bb7 修复:yy直播正则表达式错误 2020-10-17 20:54:02 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
## 更新
### 2020.10.17:修复:西瓜直播。
### 2020.10.17:修复:西瓜直播、YY直播
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']