JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.07.2019, 21:30
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default Auto-Stop and Continue for single links

Is there a setting to "stop and continue" for a single link if/when the bandwidth for that specific link falls below a specified speed limit?. The only hoster I have an issue with is with premium uploaded links where say I have 10 files and 7 of them will download at their optimum speed per chunk, however for the other three files at around 75-85%, it will drop all the chunks except one and continue download it below 50kb/s which takes hours to complete unless I manually stop it and force-started it to continue finishing at the single chunk/connection at around 525-1000kb/s for that single chunk. I have come across this issue in the past with this hoster, however, after awhile it goes away on its own so now I'm back having to babysit when downloading from this hoster. By the way, this issue has occurred from different IP-addresses with different net providers.
Reply With Quote
  #2  
Old 17.07.2019, 01:27
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,201
Default

there is an event script that checks speed of downloads and will restart download.
check the example scripts.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 17.07.2019 at 01:32.
Reply With Quote
  #3  
Old 18.07.2019, 02:00
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

Quote:
Originally Posted by raztoki View Post
there is an event script that checks speed of downloads and will restart download.
check the example scripts.
Thanks raztoki, I think that may work:
https://board.jdownloader.org/showpo...0&postcount=24
Reply With Quote
  #4  
Old 18.07.2019, 11:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

@RPNet-user: When I remember right, there should be a script that only restarts the affected downloads and not all of them. In doubt, maybe contact mgpai for help
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 19.07.2019, 22:59
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

@Jiaz, thanks, I will look for it.
Reply With Quote
  #6  
Old 21.07.2019, 02:52
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

I think this one maybe the one, I will need to test it:
https://board.jdownloader.org/showpo...6&postcount=66
Reply With Quote
  #7  
Old 21.07.2019, 10:47
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 612
Default

Quote:
Originally Posted by RPNet-user View Post
..."stop and continue" ... single link if/when the bandwidth for that specific link falls below a specified speed limit ...
Code:
// Restart link, if download speed of the link is less than specified speed.
// Trigger: Interval (Recommended: 60000 or more).

var myHosts = ["uploaded.to", "appwork.org", "jdownloader.org"]; // <- Check links only from these hosts.
var myDuration = 5; // (minutes) <- Check the link speed only after it has been running for atleast this duration.
var mySpeed = 128; // (KiB/s) <- Restart link, if download speed of the link is below this speed.

getRunningDownloadLinks().forEach(function(link) {
    if (myHosts.indexOf(link.getDownloadHost()) == -1) return;
    if (link.getDownloadDuration() < myDuration * 60 * 1000) return;
    if (link.getSpeed() > mySpeed * 1024) return;
    link.abort();
})
Reply With Quote
  #8  
Old 21.07.2019, 19:33
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

@mgpai,
Thank you, it's perfect.
Reply With Quote
  #9  
Old 22.07.2019, 13:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

@mgpai: thanks for great script!
__________________
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 23:06.
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 - 2019, Jelsoft Enterprises Ltd.