ziahamza / webui-aria2

The aim for this project is to create the worlds best and hottest interface to interact with aria2. Very simple to use, just download and open index.html in any web browser.
MIT License
9.89k stars 1.47k forks source link

feature request: batch download #67

Open magichowl opened 11 years ago

magichowl commented 11 years ago

Hi,

I met a problem when I trying to download

http://listen1.cxt8.com/go_download.aspx?ciid=180&cdid=7835&m=2 http://listen1.cxt8.com/go_download.aspx?ciid=180&cdid=7836&m=2 ... http://listen1.cxt8.com/go_download.aspx?ciid=180&cdid=7840&m=2

It would be better if I can add just one url with some wildcards http://listen1.cxt8.com/go_download.aspx?ciid=180&cdid=78**&m=2

Thanks for your good job on webui.

mtahmed commented 10 years ago

BTW, asterisks are valid characters in a URL. Also, I would think it would be hard to try all possible combinations of all possible characters in place of the wildcards. So to solve that problem, one would have to introduce REGEX into URLs e.g.

http://listen1.cxt8.com/go_download.aspx?ciid=180&cdid=78{0-9][0-9]&m=2

Then the parser would also have to be told what parts of the URL is REGEX, and I am not sure if there's a good way to do that.

magichowl commented 10 years ago

I've used a download tool called xunlei on Windows.

In its gui, a window will pop up for inserting batch schedules.

The rule of URLs is to use * enclosed by parentheses e.g.

|http://ww.a.com/file(*).zip

And below the input area for URLs, there are

several input boxes: (the position of underlines)

- From _a_ To __z
/////////////////////////////////////////////////////
- stands for radio buttons

On 09/26/2013 08:36 AM, mtahmed wrote:

BTW, asterisks are valid characters in a URL. Also, I would think it would be hard to try all possible combinations of all possible characters in place of the wildcards. So to solve that problem, one would have to introduce REGEX into URLs e.g.

|http://listen1.cxt8.com/go_download.aspx?ciid=180&cdid=78{0-9][0-9]&m=2|

Then the parser would also have to be told what parts of the URL is REGEX, and I am not sure if there's a good way to do that.

— Reply to this email directly or view it on GitHub https://github.com/ziahamza/webui-aria2/issues/67#issuecomment-25136138.

binux commented 10 years ago

try

-P, --parameterized-uri[=true|false] Enable parameterized URI support. You can specify set of parts: http://{sv1,sv2,sv3}/foo.iso. Also you can specify numeric sequences with step counter: http://host/image[000-100:2].img. A step counter can be omitted. If all URIs do not point to the same file, such as the second example above, -Z option is required. Default: false

which can be used in aria2.addUri

magichowl commented 10 years ago

I've test the aria2 1.17.0. It works in command line, e.g.

aria2c -Z -P http://www.a.com/image[12-23].jpg

but not support in webui-aria2, maybe need some modifications in parsing.

magichowl commented 10 years ago

I've enabled parameterized URI support. How to enable -Z? It doesn't work if I just write -Z before url