axel icon indicating copy to clipboard operation
axel copied to clipboard

Axel downloads only the first url content when using input from stdin

Open ghost opened this issue 7 years ago • 1 comments

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.

ghost avatar Feb 16 '18 06:02 ghost

Looking at the code, it reads one url per dash on the command line... it needs some restructuring.

ismaell avatar May 08 '19 01:05 ismaell