View Single Post
  #1365  
Old 15.05.2020, 09:08
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,142
Default

Quote:
Originally Posted by OCHer View Post
What should the command be if the script only starts after unpacking finished the last download in the queue?
Code:
// Call external program
// Trigger: Archive extraction finished

disablePermissionChecks();

if (isDownloadControllerIdle() && !callAPI("extraction", "getQueue").length) callSync("synoindex", "-R", "video");

This should call the external program if no downloads are running and last archive file has been extracted. Install the script in JD with GUI and copy the JSON value from advanced settings.
Reply With Quote