diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-19 20:00:31 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-19 20:00:31 +0530 |
commit | 23326151c45b632c3d5948bd018e80abb370e676 (patch) | |
tree | fb91e7386d3be2ce5fbfb83f36c14f5a7f7a429b /yt_dlp/YoutubeDL.py | |
parent | 9e491463521c65ca4d1d44a757e0a115f62834f5 (diff) | |
download | hypervideo-pre-23326151c45b632c3d5948bd018e80abb370e676.tar.lz hypervideo-pre-23326151c45b632c3d5948bd018e80abb370e676.tar.xz hypervideo-pre-23326151c45b632c3d5948bd018e80abb370e676.zip |
Add option --retry-sleep (#3059)
Closes #2852
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index ba08f6a7d..749cf9402 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -453,6 +453,9 @@ class YoutubeDL: Allowed keys are 'download', 'postprocess', 'download-title' (console title) and 'postprocess-title'. The template is mapped on a dictionary with keys 'progress' and 'info' + retry_sleep_functions: Dictionary of functions that takes the number of attempts + as argument and returns the time to sleep in seconds. + Allowed keys are 'http', 'fragment', 'file_access' The following parameters are not used by YoutubeDL itself, they are used by the downloader (see yt_dlp/downloader/common.py): |