1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 17:23:00 +08:00

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.
This commit is contained in:
David Manouchehri 2017-01-07 21:46:10 -05:00
parent 827961b122
commit 47da6b441d

View File

@ -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]