]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bilibili] Switch to v2 playurl API
authorSergey M․ <dstftw@gmail.com>
Thu, 15 Mar 2018 20:18:53 +0000 (03:18 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 15 Mar 2018 20:18:53 +0000 (03:18 +0700)
youtube_dl/extractor/bilibili.py

index b898223e372d04f7af458a02ebc8e9e721ac2043..90697c4a7a674ae2b640a2178ad46c6df78ee943 100644 (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))