-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to download videos from the website Bilibili #28341
Comments
I get the same issue on Artix Linux while tryring to download Bilibili videos |
For info, logging in (with -u username) doesn't make any difference. My last successful download was on March 1st. |
It seems the standard header Temporary workaround: add |
Thank you very much for this workaround. But for some reason, it doesn't seem to work in my case. I still have the exact same 412 error, logged in or not. I might be doing something wrong. Also, there seems to be a typo in your text (is the single single-quote normal?). Edit: What worked in my case is |
This is a temporary fix. Ideally we should find a more reasonable accept string that just "*/*" Fixes: ytdl-org/youtube-dl#28363 ytdl-org/youtube-dl#28341 Thanks to animelover1984 for identifying the problem
* https://github.com/ytdl-org/youtube-dl: [bilibili] fix video info extraction(closes ytdl-org#28341)
resolved add : --add-header Accept:'/' |
This is a temporary fix. Ideally we should find a more reasonable accept string that just "*/*" Fixes: ytdl-org/youtube-dl#28363 ytdl-org/youtube-dl#28341 Thanks to animelover1984 for identifying the problem
use bold part of link and add |
youtube-dl.exe -F https://www.bilibili.com/video/av86917375 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', 'https://www.bilibili.com/video/av86917375', '--verbose']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2021.03.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 4.2.3
[debug] Proxy map: {}
[BiliBili] 86917375: Downloading webpage
[BiliBili] 86917375: Downloading video info page
WARNING: Unable to download JSON metadata: HTTP Error 412: Precondition Failed
[BiliBili] 86917375: Downloading video info page
ERROR: Unable to download JSON metadata: HTTP Error 412: Precondition Failed (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpvjygsik_\build\youtube_dl\extractor\common.py", line 632, in request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpvjygsik\build\youtube_dl\YoutubeDL.py", line 2275, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
The text was updated successfully, but these errors were encountered: