projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3526c30
)
[bilibili] Switch to v2 playurl API
author
Sergey M․
<dstftw@gmail.com>
Thu, 15 Mar 2018 20:18:53 +0000
(
03:18
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 15 Mar 2018 20:18:53 +0000
(
03:18
+0700)
youtube_dl/extractor/bilibili.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bilibili.py
b/youtube_dl/extractor/bilibili.py
index b898223e372d04f7af458a02ebc8e9e721ac2043..90697c4a7a674ae2b640a2178ad46c6df78ee943 100644
(file)
--- 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))