Skip to content

Commit

Permalink
[bilibili] Switch to v2 playurl API
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Mar 15, 2018
1 parent 3526c30 commit d123960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _real_extract(self, url):
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))

Expand Down

0 comments on commit d123960

Please sign in to comment.