#1
|
|||
|
|||
"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 ???? |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
Quote:
Quote:
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. |
#4
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|