View Single Post
  #286  
Old 07.02.2018, 08:45
Hartm Hartm is offline
JD Alpha
 
Join Date: Sep 2017
Posts: 20
Default

Quote:
Originally Posted by DaDealer View Post
@hartm
Try this script

Trigger is Interval with 10000ms

Code:
//überprüfen, ob überhaupt gedownloadet wird
if (isDownloadControllerRunning() && !isDownloadControllerStopping()) {
    var running = getRunningDownloadLinks();
    //alle laufenden Downloads überprüfen
    for (var i = 0; i < running.length; i++) {
        //überprüfen, ob der Download mindestens seit 30 Sekunden läuft
        if (running[i].getDownloadDuration() > 20000) {
            //überprüfen, ob die Geschwindigkeit unter 500kb/s ist (habe 100.000er - dementsprechend an die eigene Leitung anpassen!)
            if (running[i].getSpeed() < 1000 * 1024) {
                //Reconnecten!
                requestReconnect();
            }

        }
    }
}
my downlaodrate dropps to 500kb/s and it should trigger the script right? But it doenst do anyhting.. the download just keeps going... also it would be nice if the download rate dropps under 1Mbi/s

in event scripter i enabled the script due download start is that wrong?

Last edited by Hartm; 07.02.2018 at 09:23.
Reply With Quote