xunlei-lixian
xunlei-lixian copied to clipboard
not sure if axel is getting the right args.
same problem with or without axel-opts.
with axel-opts = "-a -n 10" with no axel-opts
axel -V Axel version 2.4 (Darwin)
Copyright 2001-2002 Wilmer van der Gaast.
console: Elbereth:Downloads username$ lx download 245118093230849 AirServer503.dmg ... Usage: axel [options] url1 [url2] [url...]
-s x Specify maximum speed (bytes per second) -n x Specify maximum number of connections -o f Specify local output file -S [x] Search for mirrors and download from x servers -H x Add header string -U x Set user agent -N Just don't use any proxy server -q Leave stdout alone -v More status information -a Alternate progress indicator -h This information -V Version information
Visit http://axel.alioth.debian.org/ to report bugs
Traceback (most recent call last):
File "/usr/local/xunlei-lixian/lixian_cli.py", line 63, in
Could you show me the output of command lx config --print axel-opts
?
-a -n 10
anyway I found the cause: my version (homebrew): Axel version 2.4 (Darwin) doesn't use --Header as header arg, instead, it use -H I changed the code accordingly to reflect the changes in axel, then got http 400 errors.