mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-06 05:25:49 +01:00
Add option --ignore-no-formats-error
* Ignores the "no video format" and similar errors * Experimental - Some extractors may still throw these errors
This commit is contained in:
parent
6a39ee13f7
commit
b7da73eb19
39 changed files with 103 additions and 76 deletions
|
|
@ -749,6 +749,16 @@ def parseOpts(overrideArguments=None):
|
|||
'-s', '--simulate',
|
||||
action='store_true', dest='simulate', default=False,
|
||||
help='Do not download the video and do not write anything to disk')
|
||||
verbosity.add_option(
|
||||
'--ignore-no-formats-error',
|
||||
action='store_true', dest='ignore_no_formats_error', default=False,
|
||||
help=(
|
||||
'Ignore "No video formats" error. Usefull for extracting metadata '
|
||||
'even if the video is not actually available for download (experimental)'))
|
||||
verbosity.add_option(
|
||||
'--no-ignore-no-formats-error',
|
||||
action='store_false', dest='ignore_no_formats_error',
|
||||
help='Throw error when no downloadable video formats are found (default)')
|
||||
verbosity.add_option(
|
||||
'--skip-download', '--no-download',
|
||||
action='store_true', dest='skip_download', default=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue