JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #21  
Old 15.02.2018, 18:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

Er wird dir sicherlich weiterhelfen können
__________________
JD-Dev & Server-Admin
Reply With Quote
  #22  
Old 16.02.2018, 12:07
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,142
Default

@jiaz: If possible, please set "Synchronous Execution" as default for new scripts.

@aiimim: Here is a script, based on what I have understood by translating your PM. With default settings the script will:
  • Check IP every minute.
  • If no data has been downloaded for 5 minutes after an IP change, will disable auto reconnect for 60 minutes.
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/aiimaim.js
Reply With Quote
  #23  
Old 16.02.2018, 12:27
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

Wow thank you very much mgpai!

Sorry for PMing you in German.

I will try it right away.
Reply With Quote
  #24  
Old 16.02.2018, 12:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

@mgpai: please use ipcheck0.jdownloader.org up to ipcheck4.jdownloader.org for ip check

I will add support for synchronized methods as *default synchronous* may have side effects
__________________
JD-Dev & Server-Admin
Reply With Quote
  #25  
Old 16.02.2018, 13:46
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

Unfortunately I cannot reproduce the problem atm. I will try again later.

EDIT:
It works for me. Thank you very much mgpai!
Would it still work if I was simultaniously downloading something different, that would create traffic?

Last edited by aiimaim; 16.02.2018 at 14:17.
Reply With Quote
  #26  
Old 16.02.2018, 14:28
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

@aiimaim: Script only checks downloads within JDownloader. Or do you mean something different with your question?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #27  
Old 16.02.2018, 14:31
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

I wanted to know if it checks all downloads, or just the one, that triggered the reconnect. Because if I have another download running, the condition "no data downloaded after the ip change" might not be satisfied.

"If no data has been downloaded for 5 minutes after an IP change, will disable auto reconnect for 60 minutes."
Reply With Quote
  #28  
Old 16.02.2018, 14:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

All Downloads are checked.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #29  
Old 16.02.2018, 14:37
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

So if I have other downloads running the script will probably not work?
Reply With Quote
  #30  
Old 16.02.2018, 14:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

I'm sorry but now I'm kinda lost. What is the problem ?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #31  
Old 16.02.2018, 14:52
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

In this example I have two downlodas:
#1: From Mega (free user) causes the reconnect issue
#2: From Uploaded (Premium account)

mgpai said: "If no data has been downloaded for 5 minutes after an IP change, will disable auto reconnect for 60 minutes."

This condition will not be fullfilled, because the download from uploaded causes traffic. That is why the reconnect loop would not be stopped by the script, or am I missing something here?
Reply With Quote
  #32  
Old 16.02.2018, 14:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

better wait for him to answer your questions then
__________________
JD-Dev & Server-Admin
Reply With Quote
  #33  
Old 16.02.2018, 15:36
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,142
Default

@aiimam: I do not use reconnect, so I am not familiar with its workings. From what I see, the default settings allow interrupting resumeable downloads, in which case you are right. The auto reconnect will remain enabled as data was downloaded during that period, which might allow problem hosts to trigger reconnects. The script will work only if that setting is disabled.

One more option would be to check downloaded bytes of a particular (problematic) host and if no data was downloaded, that and other links from the same host can be temporarily disabled for the duration specified by you.

Last edited by mgpai; 16.02.2018 at 15:37. Reason: Typo
Reply With Quote
  #34  
Old 16.02.2018, 15:51
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

For now I disabled the option to allow the interruption of resumable downloads. It's not perfect, but it should prevent me from being cutoff from my home network again (when trying to access it via vpn).

Thank you
Reply With Quote
  #35  
Old 16.02.2018, 16:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,019
Default

@mgpai: Alternative solution, remember timestamp of reconnect and only allow x reconnects in y time and then temp disable it for next 30 mins or so
__________________
JD-Dev & Server-Admin
Reply With Quote
  #36  
Old 20.02.2018, 14:29
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,142
Default

@aiimaim: With default settings, if there are more than 3 reconnects in a 10 minute period, auto-reconnect will be disabled for 60 minutes.

Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/aiimaim_2.js
Reply With Quote
  #37  
Old 20.02.2018, 14:30
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

Thank you, much appreciated!

I used the trigger "RECONNECT_AFTER". Is that correct?

Last edited by aiimaim; 20.02.2018 at 14:34.
Reply With Quote
  #38  
Old 20.02.2018, 15:38
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,142
Default

Quote:
Originally Posted by aiimaim View Post
... I used the trigger "RECONNECT_AFTER". Is that correct?
Yes. I have made some modification to the script. Please use the updated version.
Reply With Quote
  #39  
Old 20.02.2018, 15:41
aiimaim aiimaim is offline
Super Loader
 
Join Date: Oct 2017
Posts: 28
Default

I replaced it, thanks!
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 08:53.
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 - 2021, Jelsoft Enterprises Ltd.