Thread: [See Bugtracker] AutoUpdate while reconnect
View Single Post
  #6  
Old 19.08.2015, 09:38
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,130
Default

Can't we use scripts to do it?

Restart and update JD before reconnect (using "Before a Reconnect" as trigger):
Code:
// Check if updates are availiable
if (callAPI("update", "isUpdateAvailable")) {
    // Restart JD and update
    callAPI("update", "restartAndUpdate");
}
Restart and update JD when downloads are not running (using "interval" as trigger)
Code:
// Check if updates are availaible when JD is idle
if (callAPI("update", "isUpdateAvailable") && isDownloadControllerIdle()) {
    // Restart JD and Update
    callAPI("update", "restartAndUpdate")
}
Reply With Quote