]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/options.py
Native concurrent downloading of fragments (#166)
[yt-dlp.git] / yt_dlp / options.py
index adef0e0a83cf11c591e7ee04f491145714bc5f4c..1e995b49062c34a7134379856af44a53dc9f1387 100644 (file)
@@ -558,6 +558,10 @@ def _dict_from_multiple_values_options_callback(
         help='Languages of the subtitles to download (optional) separated by commas, use --list-subs for available language tags')
 
     downloader = optparse.OptionGroup(parser, 'Download Options')
+    downloader.add_option(
+        '-N', '--concurrent-fragments',
+        dest='concurrent_fragment_downloads', metavar='N', default=1, type=int,
+        help='Number of fragments to download concurrently (default is %default)')
     downloader.add_option(
         '-r', '--limit-rate', '--rate-limit',
         dest='ratelimit', metavar='RATE',