I am working on a python script, in which I webscrape download links, and then download them one by one using aria2 downloader 'aria2c.exe' like this:
import os
#...
for downloadLink in someList:
os.system("aria2c -x 5 " + downloadLink + " -o " + filename + ".mp4")
#...
As you can see, if any one download fails, the process "aria2c -x 5 ... -o ..." ends and the next 'downloadLink' starts to get downloaded by aria2.
What I want is that aria2c automatically retries if there is failure. I want it to behave like Internet Download Manager (IDMan). IDMan downloads it way better than aria2 (high speed and retry automatic).
So please also give me the best command options I should use with aria2 because I want the download fast and reliable!