1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 13:54:25 -04:00

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
This commit is contained in:
pukkandan
2021-06-23 04:41:09 +05:30
parent 4c7853de14
commit 51d9739f80
6 changed files with 41 additions and 6 deletions

View File

@@ -599,6 +599,10 @@ def parseOpts(overrideArguments=None):
'-r', '--limit-rate', '--rate-limit',
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,