aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-01 05:18:37 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-01 05:18:37 +0530
commit62bff2c170a8f12d937d62a2ca74586c5e0eff1f (patch)
tree0d1508964c33a33cba442b2c39d2998eb3868baf /yt_dlp/options.py
parentf0884c8b3f171f8794a011fd1cb5d53d1185efab (diff)
downloadhypervideo-pre-62bff2c170a8f12d937d62a2ca74586c5e0eff1f.tar.lz
hypervideo-pre-62bff2c170a8f12d937d62a2ca74586c5e0eff1f.tar.xz
hypervideo-pre-62bff2c170a8f12d937d62a2ca74586c5e0eff1f.zip
Add option `--extractor-retries` to retry on known extractor errors
* Currently only used by youtube Fixes https://github.com/ytdl-org/youtube-dl/issues/28194 Possibly also fixes: https://github.com/ytdl-org/youtube-dl/issues/28289 (can not confirm since the issue isn't reliably reproducible)
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 59c08fb18..866c50cb9 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1219,6 +1219,10 @@ def parseOpts(overrideArguments=None):
extractor = optparse.OptionGroup(parser, 'Extractor Options')
extractor.add_option(
+ '--extractor-retries',
+ dest='extractor_retries', metavar='RETRIES', default=10,
+ help='Number of retries for known extractor errors (default is %default), or "infinite"')
+ extractor.add_option(
'--allow-dynamic-mpd', '--no-ignore-dynamic-mpd',
action='store_true', dest='dynamic_mpd', default=True,
help='Process dynamic DASH manifests (default) (Alias: --no-ignore-dynamic-mpd)')