xunlei-lixian icon indicating copy to clipboard operation
xunlei-lixian copied to clipboard

not sure if axel is getting the right args.

Open luginbash opened this issue 11 years ago • 2 comments

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 execute_command() File "/usr/local/xunlei-lixian/lixian_cli.py", line 60, in execute_command commandscommand File "/usr/local/xunlei-lixian/lixian_cli_parser.py", line 165, in parse return f(parser(args_list, _args, *_kwargs)) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 325, in download_task download_multiple_tasks(client, tasks, download_args) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 227, in download_multiple_tasks download_single_task(client, task, options) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 191, in download_single_task download_file(client, path, f, options) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 120, in download_file download2(client, url, path, task) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 110, in download2 download1_checked(client, url, path, size) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 99, in download1_checked download1(download, path) File "/usr/local/xunlei-lixian/lixian_commands/download.py", line 83, in download1 download() File "/usr/local/xunlei-lixian/lixian_download_tools.py", line 29, in call self.tool(self.client, self.url, self.path, self.resuming) File "/usr/local/xunlei-lixian/lixian_download_tools.py", line 123, in axel_download raise Exception('axel exited abnormally') Exception: axel exited abnormally

luginbash avatar Feb 18 '14 09:02 luginbash

Could you show me the output of command lx config --print axel-opts?

iambus avatar Feb 18 '14 11:02 iambus

-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.

luginbash avatar Feb 22 '14 12:02 luginbash