View Single Post
  #1647  
Old 18.01.2021, 20:51
tarkett tarkett is offline
JD VIP
 
Join Date: Apr 2009
Location: Deutschland
Posts: 367
Default

Quote:
Originally Posted by mgpai View Post
Code:
// Update when JD is Idle
// Trigger Required: "Interval"
// Set interval to 600000 (10 mins.) or more.

(function() {
    if (callAPI("update", "isUpdateAvailable") == false) return;
    if (callAPI("linkcrawler", "isCrawling")) return;
    if (callAPI("linkgrabberv2", "isCollecting")) return;
    if (callAPI("extraction", "getQueue").length > 0) return;
    if (callAPI("downloadcontroller", "getCurrentState") != "IDLE") return;
    callAPI("update", "restartAndUpdate");
})();
It is possible, that this script doesn't work on a headless system? On a desktop system it works fine.
The old version of this script (https://board.jdownloader.org/showthread.php?t=70525) works also on the headless system.

Best regards
tarkett

Last edited by tarkett; 18.01.2021 at 20:54.
Reply With Quote