yt-dlp: --no-abort-on-error --ignore-errors do not work on Youtube private videos
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I’m reporting that yt-dlp is broken on a supported site
- I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
- I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
- I’ve read about sharing account credentials and I’m willing to share it if required
Region
France
Provide a description that is worded well enough to be understood
Hello there,
The following command should be provoke an error thanks to the options passed --no-abort-on-error --ignore-errors, but unfortunately it is:
$ yt-dlp --no-abort-on-error --ignore-errors --restrict-filenames -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' 'https://www.youtube.com/watch?v=wBwJ7ETeRdE' ; echo $?
[youtube] Extracting URL: https://www.youtube.com/watch?v=wBwJ7ETeRdE
[youtube] wBwJ7ETeRdE: Downloading webpage
[youtube] wBwJ7ETeRdE: Downloading ios player API JSON
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
ERROR: [youtube] wBwJ7ETeRdE: Private video. Sign in if you've been granted access to this video
1
Technical information about the results above:
$ cat /etc/issue*
Kali GNU/Linux Rolling \n \l
Kali GNU/Linux Rolling
$ yt-dlp --version
2023.11.16
$ uname -mrsa
Linux adm-ClawVintage 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64 GNU/Linux
Can you fix that bug ?
Cheers !
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - If using API, add
'verbose': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
$ yt-dlp --no-abort-on-error --ignore-errors --restrict-filenames -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' 'https://www.youtube.com/watch?v=wBwJ7ETeRdE' ; echo $?
[youtube] Extracting URL: https://www.youtube.com/watch?v=wBwJ7ETeRdE
[youtube] wBwJ7ETeRdE: Downloading webpage
[youtube] wBwJ7ETeRdE: Downloading ios player API JSON
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
ERROR: [youtube] wBwJ7ETeRdE: Private video. Sign in if you've been granted access to this video
1
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 20 (8 by maintainers)
But he said in that comment he had tried setting
'ignoreerrors': Trueand'ignoreerrors': 'only_download'. So that would probably not help.The same happens for videos which will premiere in the future
ERROR: [youtube] qfvo6tfZuR8: Premieres in 2 hoursMy procedure, which is downloading a playlist, breaks when the private video is not the last item.