JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 23.01.2016, 00:53
2bugs 2bugs is offline
JD Beta
 
Join Date: Jan 2013
Posts: 58
Default Option zum automatischen neustart bei langsamen download

gibt es so eine Option unter den experten einstellungen, das wenn der speed unter xx kb/s fällt der download neu angestoßen wird?

Last edited by 2bugs; 23.01.2016 at 00:55.
Reply With Quote
  #2  
Old 23.01.2016, 08:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

In den Einstellungen den Eventscripter installieren, dort gibt es ein Bsp was genau das macht
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 24.01.2016, 11:33
2bugs 2bugs is offline
JD Beta
 
Join Date: Jan 2013
Posts: 58
Default

cool danke, kannst du mir noch sagen wo es hängt?
Ziel ist es das der Speed nie unter 800 kb/s fällt, hab die eingetragenen 50 Kb/s ersetzt aber es will nicht :D

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 800kb/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 2bugs; 24.01.2016 at 11:37.
Reply With Quote
  #4  
Old 24.01.2016, 13:25
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

if (running[i].getSpeed() < 50 * 1024) {
durch
if (running[i].getSpeed() < 800 * 1024) {

Bitte bedenke das hier der Speed eines einzelnen Downloads gemeint ist.
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:37.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.