You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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': True to YoutubeDL params 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 inif you've been granted access to this video1
The text was updated successfully, but these errors were encountered:
--no-abort-on-error is the default, but you have only passed 1 URL for a single video (not a playlist), so it is irrelevant in your example.
Regarding --ignore-errors, I think this isn't a bug, but rather a case where the documentation may need to be clarified.
The Python API documentation is more accurate, IMO:
ignoreerrors: Do not stop on download/postprocessing errors.
Can be 'only_download' to ignore only download errors.
Default is 'only_download' for CLI, but False for API
--ignore-errors tells yt-dlp to continue past an error if there is anything to continue to. But in your example log, there is an error during extraction of a single video URL and thus there is nothing else to be done.
There is no mention of exit codes in either the CLI docs or the API docs for this option.
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
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:Technical information about the results above:
Can you fix that bug ?
Cheers !
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: