From: Sergey M․ Date: Thu, 15 Mar 2018 20:18:53 +0000 (+0700) Subject: [bilibili] Switch to v2 playurl API X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d12396085754a597c2c5e621e4a68471871e2cfd;p=youtube-dl [bilibili] Switch to v2 playurl API --- diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py index b898223e3..90697c4a7 100644 --- 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))