about summary refs log tree commit diff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-04-24 03:09:08 +0700
committerSergey M․ <dstftw@gmail.com>2017-04-24 03:09:08 +0700
commit0eee52f34bfa55ba9d4ebfc4b4ba508c989f05b0 (patch)
tree6a003f95e86e4c9e46f47dca3e07861ed784d73b /youtube_dl/options.py
parentd3f0687cf7b049b976420056e02c26b5d96adeed (diff)
downloadyoutube-dl-0eee52f34bfa55ba9d4ebfc4b4ba508c989f05b0.tar.gz
youtube-dl-0eee52f34bfa55ba9d4ebfc4b4ba508c989f05b0.tar.xz
youtube-dl-0eee52f34bfa55ba9d4ebfc4b4ba508c989f05b0.zip
Introduce --keep-fragments
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 2d2f5e47b..52309fb84 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -469,6 +469,10 @@ def parseOpts(overrideArguments=None):
         action='store_false', dest='skip_unavailable_fragments',
         help='Abort downloading when some fragment is not available')
     downloader.add_option(
+        '--keep-fragments',
+        action='store_true', dest='keep_fragments', default=False,
+        help='Keep downloaded fragments on disk after downloading is finished; fragments are erased by default')
+    downloader.add_option(
         '--buffer-size',
         dest='buffersize', metavar='SIZE', default='1024',
         help='Size of download buffer (e.g. 1024 or 16K) (default is %default)')