From 47da6b441dc66dfe455f69614a954d3e78c2d9ed Mon Sep 17 00:00:00 2001 From: David Manouchehri Date: Sat, 7 Jan 2017 21:46:10 -0500 Subject: [PATCH] geom will starting downloading the video from the beginning, so you can start watching before it's finished. enable-http-pipelining helps reduce the amount of reconnections when using this algorithm. --- youtube_dl/downloader/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 5d3e5d8d3..fd17239cf 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -153,7 +153,7 @@ class Aria2cFD(ExternalFD): def _make_cmd(self, tmpfilename, info_dict): cmd = [self.exe, '-c'] cmd += self._configuration_args([ - '--min-split-size', '1M', '--max-connection-per-server', '4']) + '--min-split-size', '1M', '--max-connection-per-server', '4', '--stream-piece-selector', 'geom', '--enable-http-pipelining']) dn = os.path.dirname(tmpfilename) if dn: cmd += ['--dir', dn]