X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Foptions.py;h=52309fb8421a0e1017646572f369b56443371a81;hb=0eee52f34bfa55ba9d4ebfc4b4ba508c989f05b0;hp=2d2f5e47be99623d34e1acb4f8eb14f137c0021c;hpb=d3f0687cf7b049b976420056e02c26b5d96adeed;p=youtube-dl 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 @@ -468,6 +468,10 @@ def parseOpts(overrideArguments=None): '--abort-on-unavailable-fragment', 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',