AriaNg icon indicating copy to clipboard operation
AriaNg copied to clipboard

How to change http download link of existing fail download?

Open vihatsoft opened this issue 2 years ago • 4 comments

hi, how to change http download link of existing downloading and after change link should start download from remaining, not start from beginning.

is there any option? thank you,

vihatsoft avatar Apr 23 '22 02:04 vihatsoft

There is no option for changing URL in aria2. You can remove old task and create new one. To continue download from another link, you can just download to the same dir and out, aria2 prefers continuing over auto-renaming. It might not work if the server does not support HTTP Range header. If the server supports continuing, the previous unfinished download would have created a .aria2 control file (a bitmap marking which part of the file is downloaded).

no1xsyzy avatar Apr 23 '22 08:04 no1xsyzy

worked, ❤️ thank you

vihatsoft avatar Apr 24 '22 04:04 vihatsoft

@no1xsyzy Some servers provide download links that expire after a while. If the download is interrupted, there is no choice but to obtain a new link of the same file to continue the download. Internet Download Manager and Free Download Manager both have a feature which re-opens the web page where the download was originally obtained, leave the user to manually get the link, and they will continue the download.

aria2c has a --continue switch which can do the same. I only use AriaNg for only 1 day and immediately notice this missing feature. For now I have to manually cd to the download directory and manually invoke aria2c command to resume the downloads with new links.

Hope the developers can add it in future version.

Livy-Inverse avatar May 03 '22 15:05 Livy-Inverse

@Livy-Inverse

aria2c has a --continue switch which can do the same.

No, --continue is very different. Continuing from former task (using control file) is default and out-of-box. --continue is actually "guess and continue", i.e. to resume a download started by a web browser or another program which downloads files sequentially from the beginning (quoted from https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-c). This is an old-school use case from old years earlier than cUrl.

re-opens the web page where the download was originally obtained

Aria2 is structured differently. The usual way to use it (input the url manually) omits Referer header, which makes it totally clueless to know "where the download was originally obtained". If you remember where it is, you can remove old task and create new one. Downloading with existing file and control file implies continue.

no1xsyzy avatar May 05 '22 20:05 no1xsyzy