JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01.06.2019, 10:07
DerChrimtess DerChrimtess is offline
Baby Loader
 
Join Date: May 2011
Posts: 7
Default "Event Scripter" Extension Module => Script for "Force Download Start"

Hi,

I use "**External links are only visible to Support Staff** as a multi one click hoster in Jdownloader2.

I get very often the Status "Try restarting this link (plugin outdated)"

The solution is to execute "Force download start" several times.

Normally about 2-3 times and then the download runs for a few minutes until the
"Try restarting this link (plugin outdated)" appears again then you "Force download start" again ....

So I want to use the "Event Scripter" Extension Module to execute the "Force download start" on all links that are enabled in the Downloads.

The trigger could be:
1. Just every 60seconds
2. ( Better ) Every time a "Try restarting this link (plugin outdated)" appears for a link

Can someone give me hints how to call "Force download start" for all active downloads in the download tab ????
Reply With Quote
  #2  
Old 03.06.2019, 10:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Please provide a log, see https://support.jdownloader.org/Know...d-session-logs
and post shown logID here.

*Force download* isn't the solution as you simply force to try again. But JDownloader should not end up in *plugin outdated* in first place so the solution is to check/fix the plugin.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 07.06.2019, 13:22
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 1,324
Default

Quote:
Originally Posted by Jiaz View Post
*Force download* isn't the solution as you simply force to try again. But JDownloader should not end up in *plugin outdated* in first place so the solution is to check/fix the plugin.
You have not enough time and check/fix the plugin without log is impossible.

Quote:
Originally Posted by DerChrimtess View Post
Can someone give me hints how to call "Force download start" for all active downloads in the download tab ????
Example:
Code:
// ForceDownload (with PLUGIN_DEFECT)
// Trigger Required: "Interval"
// Set interval to 60000 (60 seconds) or more
var links = getAllDownloadLinks();

for (i = 0; i < links.length; i++) {
    var link = links[i];
    if (link.getStatus()) {
        if (link.isEnabled() && link.getFinalLinkStatus() == "PLUGIN_DEFECT") { //OFFLINE,FAILED_TOTAL,PLUGIN_DEFECT
            callAPI("downloadsV2", "forceDownload", [link.getUUID()], []);//link.reset();
        }
    }
}
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.
Reply With Quote
  #4  
Old 11.06.2019, 17:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by thecoder2012 View Post
You have not enough time and check/fix the plugin without log is impossible.
checking plugin log and trying to fix the initial cause of this is the proper solution instead of looping and hoping it will work
__________________
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 03:09.
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.