]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/options.py
Standardize retry mechanism (#1649)
[yt-dlp.git] / yt_dlp / options.py
index d930775e43b4a788c9818794b9e44e9657485e2c..236cc714b87c44e9e27ef1cb817a85c20b51ff42 100644 (file)
@@ -861,11 +861,11 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
         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'))