summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorvijayanand nandam <[email protected]>2015-08-06 22:42:58 +0530
committerSergey M․ <[email protected]>2015-08-08 02:39:05 +0600
commite0ac521438218e978b9c4bbcd92cfc2d5fef79cb (patch)
tree21e21db2d71d6a5491be0a1568b48848ceb660f5 /youtube_dl
parentbf94d763ba73e09fd77d25110c7219254b63c786 (diff)
downloadyoutube-dl-e0ac521438218e978b9c4bbcd92cfc2d5fef79cb.tar.gz
youtube-dl-e0ac521438218e978b9c4bbcd92cfc2d5fef79cb.zip
adding support for axel download manager
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/downloader/external.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index 1d5cc9904..30699934b 100644
--- a/youtube_dl/downloader/external.py
+++ b/youtube_dl/downloader/external.py
@@ -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']