adding support for axel download manager

pull/8/head
vijayanand nandam 2015-08-06 22:42:58 +05:30 zatwierdzone przez Sergey M․
rodzic bf94d763ba
commit e0ac521438
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -83,6 +83,16 @@ class CurlFD(ExternalFD):
return cmd
class AxelFD(ExternalFD):
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '-o', tmpfilename]
for key, val in info_dict['http_headers'].items():
cmd += ['-H', '%s: %s' % (key, val)]
cmd += self._configuration_args()
cmd += ['--', info_dict['url']]
return cmd
class WgetFD(ExternalFD):
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '-O', tmpfilename, '-nv', '--no-cookies']