View Single Post
  #2507  
Old 07.12.2022, 15:55
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Quote:
Originally Posted by Jiaz View Post
@nano27: edit the scripts in JDownloader with GUI and then copy/paste the advanced Settings.
I don't understand what you mean, sorry about that. Could you be more detailed on what I should do?

What I did is paste the code in the Event Scripter:

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Random delay before download
    Trigger : A Download Started
    IMPORTANT : Enable "Synchronous execution" checkbox in the top panel
*/

var seconds = Math.floor(Math.random() * 5) + 1 // 1 to 5 seconds

while (seconds && !link.aborting) {
    sleep(seconds * 1000);
    seconds--;
}
Then when I open the EventScripter in Advanced Settings I see this:

{
"eventTrigger" : "ON_DOWNLOAD_CONTROLLER_START",
"eventTriggerSettings" : {},
"id" : 1670418113394,
"name" : "delay",
"script" : null,
"enabled" : true
}
]

So, the event trigger is wrong and the script is null. I've tried deleting the script and repeating the process, but always get the same result.
Reply With Quote