From 04e7bf92a085c80bc9aff307959da7a182c69b74 Mon Sep 17 00:00:00 2001 From: Barak Tawily Date: Tue, 6 Nov 2018 17:18:21 +0200 Subject: [PATCH] skip-http-head flag added --- youtube_dl/options.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index e7d8e8910..a89d602a8 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -226,6 +226,13 @@ def parseOpts(overrideArguments=None): action='store_const', const='::', dest='source_address', help='Make all connections via IPv6', ) + network.add_option( + '--skip-http-head', + action='store_const', default=False, dest='skip_http_head', + help='Skip the initial HTTP head request', + ) + + geo = optparse.OptionGroup(parser, 'Geo Restriction') geo.add_option(