Browse Source

[bilibili] Switch to v2 playurl API

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
d123960857
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/bilibili.py

+ 1
- 1
youtube_dl/extractor/bilibili.py 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))


Loading…
Cancel
Save