View Single Post
  #2108  
Old 17.02.2022, 11:17
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,549
Default

Quote:
Originally Posted by Tobi573 View Post
How is the "force start" command?
Quote:
Originally Posted by gentle View Post
Maybe the "PLUGIN_DEFECT" must be replaced with "ERROR_PLUGIN_DEFECT", but these 2 variants also didnt work for me...
A 'force' download may not be required. Just the 'resume' call should be enough (Not tested).

Code:
/*
    Resume links
    Trigger : Interval (Reommended 60000+)
*/

var list = ["PLUGIN_DEFECT", "OTHER_ERROR"];

getAllDownloadLinks().forEach(function(link) {
    if (list.indexOf(link.finalLinkStatus) > -1) {
        link.resume();
    }
})

Use the following script to get a list of link status, select and press CTRL+C to copy the relevant status to clipboard and add it in the main script.

Code:
/*
    Get list of final link status
    Trigger: None (Use test run to execute the script)
*/

setAdvancedAlert(true);

var list = [];

getAllDownloadLinks().forEach(function(link) {
    var status = link.finalLinkStatus;
    list.indexOf(status) == -1 && list.push(status);
})

alert(list.join("\n"));
Reply With Quote