From 171f0e85ff9dcf57a0f9b4a31941255442bffce4 Mon Sep 17 00:00:00 2001 From: mrfunkycoda <34271361+mrfunkycoda@users.noreply.github.com> Date: Tue, 5 Dec 2017 14:53:18 +0200 Subject: [PATCH] Update options.py --- youtube_dl/options.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 4c0455044..2c7349483 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -563,7 +563,15 @@ def parseOpts(overrideArguments=None): 'Upper bound of a range for randomized sleep before each download ' '(maximum possible number of seconds to sleep). Must only be used ' 'along with --min-sleep-interval.')) - + workarounds.add_option( + '--youtube-prefer-get-video-info', + action='store_true', dest='youtube_prefer_get_video_info', default=False, + help=( + 'By prefering a Youtube link extracted from get_video_info instead ' + 'of the video\'s webpage, Youtube is likely to send a link with the ' + '"content-disposition: Attachment" header added (provided you add the ' + '"&title=...." option to the link)')) + verbosity = optparse.OptionGroup(parser, 'Verbosity / Simulation Options') verbosity.add_option( '-q', '--quiet',