From 3d94e2df4474129bbedbce79251645bc2474294c Mon Sep 17 00:00:00 2001 From: PPeanutButter <32627733+PPeanutButter@users.noreply.github.com> Date: Sun, 22 Aug 2021 09:00:21 +0800 Subject: [PATCH] delete (failure) tasks when restart when failure tasks been restarted, both will exist in `Other Tasks`, it will be difficult to make sure whether failure tasks has been restarted especially task failed more than once --- js/aria2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/aria2.js b/js/aria2.js index e92436e..83d47e7 100644 --- a/js/aria2.js +++ b/js/aria2.js @@ -355,6 +355,8 @@ if (typeof ARIA2=="undefined"||!ARIA2) var ARIA2=(function(){ 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); }); } });