Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
bilibili :ERROR: BiliBili returns error -5016 #14296
Comments
|
A quick-and-dirty fix: diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py
index 1e57310d6..1334bc94c 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=' % (self._APP_KEY, cid)
sign = hashlib.md5((payload + self._BILIBILI_KEY).encode('utf-8')).hexdigest()
video_info = self._download_json( |
|
It did worked fine with me. @luhy118 |
|
now it sure. |
D:\workspace\clip-spider>youtube-dl https://www.bilibili.com/video/av8954693
[BiliBili] 8954693: Downloading webpage
[BiliBili] 8954693: Downloading video info page
ERROR: BiliBili returns error -5016