projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf94d76
)
adding support for axel download manager
author
vijayanand nandam
<vijay@cybrilla.com>
Thu, 6 Aug 2015 17:12:58 +0000
(22:42 +0530)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 7 Aug 2015 20:39:05 +0000
(
02:39
+0600)
youtube_dl/downloader/external.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/external.py
b/youtube_dl/downloader/external.py
index 1d5cc99043d02f658064e688c268c37171c37325..30699934b63d60c3ec8d0261b4ffc55bd988ccbc 100644
(file)
--- 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']