diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-04-17 05:39:58 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-04-17 08:40:30 +0530 |
commit | b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3 (patch) | |
tree | a87c490ae5d4de7e95c7b7a6cb9e5184d4827fd8 /yt_dlp/options.py | |
parent | 6a39ee13f7613767905a4669d1d0247aafc5a12c (diff) | |
download | hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.lz hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.xz hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.zip |
Add option `--ignore-no-formats-error`
* Ignores the "no video format" and similar errors
* Experimental - Some extractors may still throw these errors
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index cced9fb89..fef1e4b15 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -750,6 +750,16 @@ def parseOpts(overrideArguments=None): 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, help='Do not download the video but write all related files (Alias: --no-download)') |