binux / yaaw

Yet Another Aria2 Webui in pure HTML/CSS/Javascirpt
http://binux.github.io/yaaw/demo/
2.35k stars 404 forks source link

delete (failure) tasks when restart #152

Open PPeanutButter opened 3 years ago

PPeanutButter commented 3 years ago

when failure tasks been restarted manually, both will exist in Other Tasks(waitting, success or failure), it will be difficult to make sure whether failure tasks has been restarted especially task failed more than once

this can make sure deletes after new task been created

ARIA2.request("getOption", [gid], function(result) {
    var options = result.result;
    ARIA2.madd_task(uris, options);
    //delete old info(mostly failure), won`t delete file from disk actually.
    ARIA2.remove_result(gid);
});