aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-03-16 03:18:53 +0700
committerSergey M․ <dstftw@gmail.com>2018-03-16 03:18:53 +0700
commitd12396085754a597c2c5e621e4a68471871e2cfd (patch)
tree074814cb94ce75ce5a2cf3293f2d3fafc223809b
parent3526c3043b5d6ce64d9cf0ccab20ef0b7a1e6a13 (diff)
[bilibili] Switch to v2 playurl API
-rw-r--r--youtube_dl/extractor/bilibili.py2
1 files changed, 1 insertions, 1 deletions
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))