diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-04-24 03:09:08 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-04-24 03:09:08 +0700 |
commit | 0eee52f34bfa55ba9d4ebfc4b4ba508c989f05b0 (patch) | |
tree | 6a003f95e86e4c9e46f47dca3e07861ed784d73b /youtube_dl/options.py | |
parent | d3f0687cf7b049b976420056e02c26b5d96adeed (diff) |
Introduce --keep-fragments
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r-- | youtube_dl/options.py | 4 |
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)') |