commit d12396085754a597c2c5e621e4a68471871e2cfd
parent 3526c3043b5d6ce64d9cf0ccab20ef0b7a1e6a13
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 16 Mar 2018 03:18:53 +0700

[bilibili] Switch to v2 playurl API

Diffstat:
Myoutube_dl/extractor/bilibili.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py @@ -152,7 +152,7 @@ class BiliBiliIE(InfoExtractor): sign = hashlib.md5((payload + self._BILIBILI_KEY).encode('utf-8')).hexdigest() video_info = self._download_json( - 'http://interface.bilibili.com/playurl?%s&sign=%s' % (payload, sign), + 'http://interface.bilibili.com/v2/playurl?%s&sign=%s' % (payload, sign), video_id, note='Downloading video info page', headers=headers, fatal=num == len(RENDITIONS))