aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-02 01:43:18 +0530
committerGitHub <noreply@github.com>2022-08-02 01:43:18 +0530
commitbe5c1ae86202be54225d376756f5d9f0bf8f392a (patch)
tree9084adbc9200a204db358f8eb46534d8a98056a9 /yt_dlp/options.py
parentbfd973ece3369c593b5e82a88cc16de80088a73e (diff)
downloadhypervideo-pre-be5c1ae86202be54225d376756f5d9f0bf8f392a.tar.lz
hypervideo-pre-be5c1ae86202be54225d376756f5d9f0bf8f392a.tar.xz
hypervideo-pre-be5c1ae86202be54225d376756f5d9f0bf8f392a.zip
Standardize retry mechanism (#1649)
* [utils] Create `RetryManager` * Migrate all retries to use the manager * [extractor] Add wrapper methods for convenience * Standardize console messages for retries * Add `--retry-sleep` for extractors
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index d930775e4..236cc714b 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -861,11 +861,11 @@ def create_parser():
dest='retry_sleep', metavar='[TYPE:]EXPR', default={}, type='str',
action='callback', callback=_dict_from_options_callback,
callback_kwargs={
- 'allowed_keys': 'http|fragment|file_access',
+ 'allowed_keys': 'http|fragment|file_access|extractor',
'default_key': 'http',
}, help=(
- 'An expression for the time to sleep between retries in seconds (optionally) prefixed '
- 'by the type of retry (file_access, fragment, http (default)) to apply the sleep to. '
+ 'Time to sleep between retries in seconds (optionally) prefixed by the type of retry '
+ '(http (default), fragment, file_access, extractor) to apply the sleep to. '
'EXPR can be a number, linear=START[:END[:STEP=1]] or exp=START[:END[:BASE=2]]. '
'This option can be used multiple times to set the sleep for the different retry types. '
'Eg: --retry-sleep linear=1::2 --retry-sleep fragment:exp=1:20'))