From 37cea84f775129ad715b9bcd617251c831fcc980 Mon Sep 17 00:00:00 2001 From: dirkf Date: Tue, 2 Jul 2024 14:54:25 +0100 Subject: [core,utils] Support unpublicised `--no-check-extensions` --- youtube_dl/options.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube_dl/options.py') diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 434f520d3..61705d1f0 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -533,6 +533,10 @@ def parseOpts(overrideArguments=None): '--no-check-certificate', action='store_true', dest='no_check_certificate', default=False, help='Suppress HTTPS certificate validation') + workarounds.add_option( + '--no-check-extensions', + action='store_true', dest='no_check_extensions', default=False, + help='Suppress file extension validation') workarounds.add_option( '--prefer-insecure', '--prefer-unsecure', action='store_true', dest='prefer_insecure', -- cgit v1.2.3