From b41cd595476f1f774fc431a853ddce0f5991f4c0 Mon Sep 17 00:00:00 2001 From: vijayanand nandam Date: Thu, 6 Aug 2015 22:42:58 +0530 Subject: [PATCH] adding support for axel download manager --- youtube_dl/downloader/external.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 1d5cc9904..df7e55874 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -82,6 +82,15 @@ class CurlFD(ExternalFD): cmd += ['--', info_dict['url']] 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):