From ac773f7bb78281d1b65d2b52e38944dd87606c4c Mon Sep 17 00:00:00 2001 From: wbt5 Date: Sat, 17 Oct 2020 20:54:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:yy=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yy.py b/yy.py index 95ca203..d1fa55d 100644 --- a/yy.py +++ b/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']