Aria2 don't re-download file

自闭症网瘾萝莉.ら 提交于 2019-12-12 12:22:50

问题


I'm using aria2 to download a list of files that is dynamically generated. I want it to skip the files that are already in the download directory, but instead of doing this, it just re-downloads them and adds a .1 to the filename. I tried using --check-integrity=true, but that did not change the behavior. Is there a way to make it skip files that already exist?


回答1:


Try adding --continue=true to your command.

According to the aria2c(1) man-page, -c, --continue[=true|false]:

Continue downloading a partially downloaded file. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning. Currently this option is only applicable to HTTP(S)/FTP downloads.




回答2:


According to this issue the way to go should be

--auto-file-renaming=false

If a control file (.aria2) exists then the download will resume, otherwise if no control file exists then since --allow-overwrite is false by default the file will not be re-downloaded.



来源:https://stackoverflow.com/questions/40567632/aria2-dont-re-download-file

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