diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-23 04:41:09 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-23 05:29:58 +0530 |
commit | 51d9739f8031fb37d8e25b0e9f1abea561e3d2e3 (patch) | |
tree | 4f28a3ed33c65d467535b502125b815650fcd8d9 /yt_dlp/options.py | |
parent | 4c7853de1495619e0ace5ba24503600d9e4f49a1 (diff) | |
download | hypervideo-pre-51d9739f8031fb37d8e25b0e9f1abea561e3d2e3.tar.lz hypervideo-pre-51d9739f8031fb37d8e25b0e9f1abea561e3d2e3.tar.xz hypervideo-pre-51d9739f8031fb37d8e25b0e9f1abea561e3d2e3.zip |
Add option `--throttled-rate` below which video data is re-extracted
Currently only for HTTP downloads
Closes #430, workaround for https://github.com/ytdl-org/youtube-dl/issues/29326
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 535178627..bd817fed7 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -600,6 +600,10 @@ def parseOpts(overrideArguments=None): dest='ratelimit', metavar='RATE', help='Maximum download rate in bytes per second (e.g. 50K or 4.2M)') downloader.add_option( + '--throttled-rate', + dest='throttledratelimit', metavar='RATE', + help='Minimum download rate in bytes per second below which throttling is assumed and the video data is re-extracted (e.g. 100K)') + downloader.add_option( '-R', '--retries', dest='retries', metavar='RETRIES', default=10, help='Number of retries (default is %default), or "infinite"') |