From d113681bd500de6627e0694d28cfa91b5ee1d88d Mon Sep 17 00:00:00 2001 From: Tristan Huang Date: Thu, 21 Dec 2017 03:09:52 +0800 Subject: [PATCH] [bilibili] Update payload --- youtube_dl/extractor/bilibili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py index 1e57310d6..4ccd06239 100644 --- a/youtube_dl/extractor/bilibili.py +++ b/youtube_dl/extractor/bilibili.py @@ -113,7 +113,7 @@ class BiliBiliIE(InfoExtractor): self._report_error(js) cid = js['result']['cid'] - payload = 'appkey=%s&cid=%s&otype=json&quality=2&type=mp4' % (self._APP_KEY, cid) + payload = 'appkey=%s&cid=%s&otype=json&quality=0&type=flv' % (self._APP_KEY, cid) sign = hashlib.md5((payload + self._BILIBILI_KEY).encode('utf-8')).hexdigest() video_info = self._download_json(