axel
axel copied to clipboard
Axel downloads only the first url content when using input from stdin
Steps to reproduce this issue:
$ cat iso.txt
https://mirror.pkgbuild.com/iso/2017.12.01/archlinux-2017.12.01-x86_64.iso.torrent
http://linuxtracker.org/?page=torrent-details&id=0c0b2b984a7aff83e4f587e8b88d0df05cf94604
http://distfiles.gentoo.org/releases/amd64/autobuilds/20180206T214502Z/install-amd64-minimal-20180206T214502Z.iso
$ axel - < iso.txt
Initializing download: https://mirror.pkgbuild.com/iso/2017.12.01/archlinux-2017.12.01-x86_64.iso.torrent
File size: 35148 bytes
Opening output file archlinux-2017.12.01-x86_64.iso.torrent
Starting download
[ 0%] .......... .......... .......... ....
Connection 0 finished
Downloaded 34.3 Kilobyte in 7 seconds. (4.39 KB/s)
$
Notice how the urls in lines other than first have been completely ignored. This happens to the subsequent urls too.
Looking at the code, it reads one url per dash on the command line... it needs some restructuring.