1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 20:15:34 +08:00

[bilibili] Update payload

This commit is contained in:
Tristan Huang 2017-12-21 03:09:52 +08:00 committed by GitHub
parent d2d766bc6d
commit d113681bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(