JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #441  
Old 19.04.2018, 10:25
FlyAway FlyAway is offline
DSL User
 
Join Date: Feb 2013
Posts: 37
Default

That's no good. On Mega.co you always download at great speed but, rarely, there are files that are downloaded only at low speeds. These files, of course, remain last in the list in queue. So it often happens to have 2 or 3 files that are downloading at 100kb each. In this situation, the mgpai script would continue indefinitely to disconnect and reconnect and damage the router. So, I do not want to limit the reconnections, I want to limit them only when a similar situation is created.
I need a script that, in a situation like the one I described, disconnects and reconnects 10 times and then stops and goes on to download at low speed because even with the reconnection does not change anything

Last edited by FlyAway; 19.04.2018 at 10:31.
Reply With Quote
  #442  
Old 19.04.2018, 10:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 54,793
Default

What makes you think that reconnect damages your router? I'm not aware of any hardware issues nor ever heard/read about a router got broken because of too many reconnects/restarts.

You can easily *detect* those situations in the script and avoid reconnect. For example add special handling to detect mega downloads. I don't see any difference between limiting number of executions and limits reconnects
__________________
JD-Dev & Server-Admin
Reply With Quote
  #443  
Old 19.04.2018, 11:15
FlyAway FlyAway is offline
DSL User
 
Join Date: Feb 2013
Posts: 37
Default

Try turning off and on a light for 2 or 3 hours continuously and then we talk about it

Mega.co normally download at high speeds, only some files (I do not understand why) are downloaded slowly and even the reconnection does not bring improvements.
If you set maximum 2 reconnections in 2 hours, you prevent me from restarting the router even when I still have files in the queue that would be downloaded quickly

Last edited by FlyAway; 19.04.2018 at 11:19.
Reply With Quote
  #444  
Old 19.04.2018, 22:23
michabbb michabbb is offline
Vacuum Cleaner
 
Join Date: Jul 2017
Posts: 17
Default When it says: "package" is not defined.

OMG... it took me now over an hour to find out:

"package" is not available with the trigger "ON_ARCHIVE_EXTRACTED"

this brings some questions up:

1) WHY ?
maybe because the package gets deleted after extraction (in my case) ?
2) where do i find a list of all triggers names in JSON format ?
3) is it possible to run multiple scripts on the same event ?
4) what is the correct docu for all this ? my.jdownloader.org/developers/ ??
where do i find the info that there is something like "package" and that it
has a function called getName() ??

thanks
Reply With Quote
  #445  
Old 20.04.2018, 09:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 54,793
Default

@michabbb:
1.) Several reasons!
-For example the archive parts can be spread among several packages
-Archives can also have no links/packages at all! For example manual extraction via GUI or deep extraction of inner archives.
-You can use getDownloadLinks() and check for existiance and then use getPackage()
2.) ON_DOWNLOAD_CONTROLLER_START , ON_DOWNLOAD_CONTROLLER_STOPPED, ON_PACKAGE_FINISHED, ON_GENERIC_EXTRACTION, ON_ARCHIVE_EXTRACTED, ON_JDOWNLOADER_STARTED , ON_OUTGOING_REMOTE_API_EVENT, ON_NEW_FILE , ON_NEW_CRAWLER_JOB , ON_PACKAGIZER , ON_DOWNLOADS_PAUSE , ON_DOWNLOADS_RUNNING , ON_DOWNLOADS_STOPPED , RECONNECT_BEFORE , RECONNECT_AFTER , CAPTCHA_CHALLENGE_AFTER , INTERVAL , TOOLBAR_BUTTON , MAIN_MENU_BUTTON , DOWNLOAD_TABLE_CONTEXT_MENU_BUTTON , LINKGRABBER_TABLE_CONTEXT_MENU_BUTTON , DOWNLOAD_TABLE_BOTTOM_BAR_BUTTON , LINKGRABBER_BOTTOM_BAR_BUTTON , TRAY_BUTTON
3.) Just add multiple scripts for the same event or put all javascript into the same event
4.) The scripteditor in JDownloader with GUI shows full doc, all available methods/objects/variables
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 20.04.2018 at 09:33.
Reply With Quote
  #446  
Old 20.04.2018, 17:13
michabbb michabbb is offline
Vacuum Cleaner
 
Join Date: Jul 2017
Posts: 17
Default

will try, thanks a lot !!
Reply With Quote
  #447  
Old 20.04.2018, 17:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 54,793
Default

You're welcome. Nothing to thank me for
__________________
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 08:51.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.