View Single Post
  #857  
Old 08.08.2019, 18:29
DunDee DunDee is offline
Vacuum Cleaner
 
Join Date: Aug 2019
Posts: 16
Default

Can someone help me with my list of files. i got backup data my on 1fichier.com hosting. Now they got new rules when someone don't download it in 60 or 80 days they change it to cold storage from hot storage. I used this hosting only for my data backup.
So my question is can someone write a script in JS with short connections with my filelist when i add it in JD2 and i will download simulate only for connect with my files list it can be little download and move to next of files in list.

JD2 got script builded with restart of downloads if below are 50kb then restart. Maybe someone know how to change this script, and dont restard only skip after speed is below 50kb/s then my files move to hot storage and i will rescue them before they delete it from my account.
Sorry for my english im not very good with writing.
this is from JD2 script restard download if the speed is low.

Code:
//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 30 seconds
        if (running[i].getDownloadDuration() > 30000) {
            //check if the current speed is below 50kb/s
            if (running[i].getSpeed() < 50 * 1024) {
                //reset the download
                //running[i].reset();
                //stop the download and restart it
                running[i].abort();
            }

        }
    }
}

Last edited by DunDee; 08.08.2019 at 19:33.
Reply With Quote