aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-27 18:11:23 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-27 18:14:42 +0530
commit1cf376f55a3d9335eb161c07c439ca143d86924e (patch)
treea8f6baa18140e4fa24cd084572b3c38f2cb3aa08 /yt_dlp/options.py
parent7f7de7f94dfeacb0eb78cb9487dfcaf5707da381 (diff)
downloadhypervideo-pre-1cf376f55a3d9335eb161c07c439ca143d86924e.tar.lz
hypervideo-pre-1cf376f55a3d9335eb161c07c439ca143d86924e.tar.xz
hypervideo-pre-1cf376f55a3d9335eb161c07c439ca143d86924e.zip
Add option `--sleep-requests` to sleep b/w requests (Closes #106)
* Also fix documentation of `sleep_interval_subtitles` Related issues: https://github.com/blackjack4494/yt-dlc/issues/158 https://github.com/blackjack4494/youtube-dlc/issues/195 https://github.com/ytdl-org/youtube-dl/pull/28270 https://github.com/ytdl-org/youtube-dl/pull/28144 https://github.com/ytdl-org/youtube-dl/issues/27767 https://github.com/ytdl-org/youtube-dl/issues/23638 https://github.com/ytdl-org/youtube-dl/issues/26287 https://github.com/ytdl-org/youtube-dl/issues/26319
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 5f200fb8f..ae11e6b8b 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -697,6 +697,10 @@ def parseOpts(overrideArguments=None):
dest='bidi_workaround', action='store_true',
help='Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH')
workarounds.add_option(
+ '--sleep-requests', metavar='SECONDS',
+ dest='sleep_interval_requests', type=float,
+ help='Number of seconds to sleep between requests during data extraction')
+ workarounds.add_option(
'--sleep-interval', '--min-sleep-interval', metavar='SECONDS',
dest='sleep_interval', type=float,
help=(
@@ -714,7 +718,7 @@ def parseOpts(overrideArguments=None):
workarounds.add_option(
'--sleep-subtitles', metavar='SECONDS',
dest='sleep_interval_subtitles', default=0, type=int,
- help='Enforce sleep interval on subtitles as well')
+ help='Number of seconds to sleep before each subtitle download')
verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options')
verbosity.add_option(