aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorEmanuel Hoogeveen <55082669+ehoogeveen-medweb@users.noreply.github.com>2021-12-23 03:29:03 +0100
committerGitHub <noreply@github.com>2021-12-23 07:59:03 +0530
commit205a0654c00275cbdd77efd00c4f39020fd53e62 (patch)
tree3d1f117ce786d23b6059031e94a7867918dd39e5 /yt_dlp/options.py
parent663949f825607fc5a03a08a31a3919ed0d7bb883 (diff)
downloadhypervideo-pre-205a0654c00275cbdd77efd00c4f39020fd53e62.tar.lz
hypervideo-pre-205a0654c00275cbdd77efd00c4f39020fd53e62.tar.xz
hypervideo-pre-205a0654c00275cbdd77efd00c4f39020fd53e62.zip
Add option `--file-access-retries` (#2066)
Closes #517 Authored by: ehoogeveen-medweb
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 b9e41d23f..5be236c53 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -682,6 +682,10 @@ def parseOpts(overrideArguments=None):
dest='retries', metavar='RETRIES', default=10,
help='Number of retries (default is %default), or "infinite"')
downloader.add_option(
+ '--file-access-retries',
+ dest='file_access_retries', metavar='RETRIES', default=10,
+ help='Number of times to retry on file access error (default is %default), or "infinite"')
+ downloader.add_option(
'--fragment-retries',
dest='fragment_retries', metavar='RETRIES', default=10,
help='Number of retries for a fragment (default is %default), or "infinite" (DASH, hlsnative and ISM)')