aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-08-27 04:52:18 +0700
committerSergey M․ <dstftw@gmail.com>2016-09-03 17:51:48 +0700
commit9603b6601208333bc49e0c69199f0e652a7aaea3 (patch)
tree4121a750cdac459565c352d66488c1052a9f9a16 /youtube_dl/options.py
parent45aab4d30b7c3fc03c9be9680550cba88bd85b5c (diff)
downloadyoutube-dl-9603b6601208333bc49e0c69199f0e652a7aaea3.tar.xz
Introduce --skip-unavailable-fragments
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 5d62deef4..56f312f57 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -423,7 +423,15 @@ def parseOpts(overrideArguments=None):
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 only)')
+ help='Number of retries for a fragment (default is %default), or "infinite" (DASH and hlsnative only)')
+ downloader.add_option(
+ '--skip-unavailable-fragments',
+ action='store_true', dest='skip_unavailable_fragments', default=True,
+ help='Skip unavailable fragments (DASH and hlsnative only)')
+ general.add_option(
+ '--abort-on-unavailable-fragment',
+ action='store_false', dest='skip_unavailable_fragments',
+ help='Abort downloading when some fragment is not available')
downloader.add_option(
'--buffer-size',
dest='buffersize', metavar='SIZE', default='1024',