aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-24 14:46:07 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-24 15:00:17 +0530
commit9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7 (patch)
tree8c2b39315a6313d341c760fe03b47419509ba06d /yt_dlp/options.py
parent96565c7e55bc3d97a1d4232fe974091dd45f5fe9 (diff)
downloadhypervideo-pre-9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7.tar.lz
hypervideo-pre-9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7.tar.xz
hypervideo-pre-9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7.zip
Separate `--check-all-formats` from `--check-formats`
Previously, `--check-formats` tested only the selected video formats, but ALL thumbnails
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 719a1bce4..5499ab13e 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -562,12 +562,16 @@ def parseOpts(overrideArguments=None):
help="Don't give any special preference to free containers (default)")
video_format.add_option(
'--check-formats',
- action='store_true', dest='check_formats', default=None,
- help='Check that the formats selected are actually downloadable')
+ action='store_const', const='selected', dest='check_formats', default=None,
+ help='Check that the selected formats are actually downloadable')
+ video_format.add_option(
+ '--check-all-formats',
+ action='store_true', dest='check_formats',
+ help='Check all formats for whether they are actually downloadable')
video_format.add_option(
'--no-check-formats',
action='store_false', dest='check_formats',
- help='Do not check that the formats selected are actually downloadable')
+ help='Do not check that the formats are actually downloadable')
video_format.add_option(
'-F', '--list-formats',
action='store_true', dest='listformats',