#1
|
|||
|
|||
[help] script for jdownloader 2
Hello everybody,
In the script hereunder if the download speed is under 4000kb jdownloader stop downloads. I need that instead of stop downloads it keep downloading with the next link. //check if downloads are running at all if (isDownloadControllerRunning() && !isDownloadControllerStopping()) { var running = getRunningDownloadLinks(); //loop through all running Downloads for (var i = 0; i < running.length; i++) { //check if the download has been running at least 3 seconds if (running[i].getDownloadDuration() > 3000) { //check if the current speed is below 4000kb/s if (running[i].getSpeed() < 4000 * 1024) { //stop downloads stopDownloads(); } } } } |
#2
|
|||
|
|||
Replace:
Code:
stopDownloads(); Code:
running[i].setSkipped(true); |
Thread Tools | |
Display Modes | |
|
|