JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 16.07.2019, 22:30
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
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, 02:27
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
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 02:32.
Reply With Quote
  #3  
Old 18.07.2019, 03:00
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
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, 12:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
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, 23:59
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

@Jiaz, thanks, I will look for it.
Reply With Quote
  #6  
Old 21.07.2019, 03:52
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
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, 11:47
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
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, 20:33
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

@mgpai,
Thank you, it's perfect.
Reply With Quote
  #9  
Old 22.07.2019, 14:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
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 22:19.
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.