Quote:
Originally Posted by Tobi573
Wie Ist der command "Start erzwingen"?
How is the "force start" command?
|
Here is another script that i have found:
Code:
// ForceDownload (with PLUGIN_DEFECT)
// Trigger Required: "Interval"
// Set interval to 60000 (60 seconds) or more
var links = getAllDownloadLinks();
for (i = 0; i < links.length; i++) {
var link = links[i];
if (link.getStatus()) {
if (link.isEnabled() && link.getFinalLinkStatus() == "PLUGIN_DEFECT") { //OFFLINE,FAILED_TOTAL,PLUGIN_DEFECT
callAPI("downloadsV2", "forceDownload", [link.getUUID()], []);//link.reset();
}
}
}
Maybe the "PLUGIN_DEFECT" must be replaced with "ERROR_PLUGIN_DEFECT", but these 2 variants also didnt work for me...