mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-03 18:12:58 +01:00
[bilibili] Switch to v2 playurl API
This commit is contained in:
parent
3526c3043b
commit
d123960857
@ -152,7 +152,7 @@ def _real_extract(self, url):
|
|||||||
sign = hashlib.md5((payload + self._BILIBILI_KEY).encode('utf-8')).hexdigest()
|
sign = hashlib.md5((payload + self._BILIBILI_KEY).encode('utf-8')).hexdigest()
|
||||||
|
|
||||||
video_info = self._download_json(
|
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',
|
video_id, note='Downloading video info page',
|
||||||
headers=headers, fatal=num == len(RENDITIONS))
|
headers=headers, fatal=num == len(RENDITIONS))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user