1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-25 10:17:41 +00:00

[bilibili] Switch to v2 playurl API

This commit is contained in:
Sergey M․ 2018-03-16 03:18:53 +07:00
parent 3526c3043b
commit d123960857
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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))