Can aria2c download list of urls with specific file names for each?

℡╲_俬逩灬. 提交于 2019-12-08 16:54:02

问题


For example i have a list of URLs:

https://link.com/file/get/somefile.ext
https://go.com/download/anotherfile.ext
https://program.com/selection/download.php?id=26162

I want to set a specific name for last URL, something like this:

https://program.com/selection/download.php?id=26162 -o thirdfile.ext

Is it possible with aria2c download list syntax?

I know that I can do like this:

aria2c https://link.com/file/get/somefile.ext
aria2c https://go.com/download/anotherfile.ext
aria2c https://program.com/selection/download.php?id=26162 -o thirdfile.ext

But this way I run just too much of aria2c's. ._.


回答1:


From the documentation on --input-file=

Additionally, options can be specified after each URI line. Option lines must start with one or more white space characters (SPACE or TAB) and must only contain one option per line. … See the Input File subsection for details.

If you ask me, that is not exactly crystal clear. So here's an example of an input file (with a single entry):

http://www.openclonk.org/header/logo.png
        out=openclonk.png


来源:https://stackoverflow.com/questions/46102806/can-aria2c-download-list-of-urls-with-specific-file-names-for-each

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!