mirror of
https://github.com/wbt5/real-url.git
synced 2025-08-01 14:48:01 +08:00
修复:yy直播正则表达式错误
This commit is contained in:
parent
3aeaa5ae55
commit
ac773f7bb7
2
yy.py
2
yy.py
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user