cavaliergopher / grab

A download manager package for Go
BSD 3-Clause "New" or "Revised" License
1.38k stars 151 forks source link

Can I download one file from multiple mirror link ? #36

Open jannson opened 6 years ago

jannson commented 6 years ago

Here is a new requirement, and the case is: a large file on the internet which has multiple mirror download links, and the md5sum is the same. the mirror http server all support accept-range. than I want to download this file from multiple mirror link to speed up download bandwidth. example: linux.iso total 300M http://a.com/linux.iso http://mirror.b.com/linux.iso http://mirror.c.com/linux.iso

download [0, 100M) from a.com download [100M,200M) from b.com download [200M,300M) from c.com

download at one time, merge into one file.

cavaliercoder commented 6 years ago

This is a great feature request, though difficult to implement. I'll look into it. Submission welcome.

jannson commented 6 years ago

I can try a demo for this case , but I cannot support it directly in Grab, for the Grab implement is quit complex.

cavaliercoder commented 5 years ago

Yes it is complicated I apologize :( I work very hard to make it simply but the are many possible states and transitions. This project was a surprise to me!

For anyone considering a pull request, please see notes in #46 first.