JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 28.11.2024, 17:21
FBD's Avatar
FBD FBD is offline
Giga Loader
 
Join Date: Nov 2018
Location: https://web.libera.chat/#jDownloader
Posts: 96
Post Automatically unskip skipped downloads

This script unskips downloads that were skipped for various reasons.

Trigger required: Interval

Spoiler:
Code:
// Unskip skipped downloads
// Trigger: Interval

// Create a new empty script, name it appropriately and paste this code
// Save the file and set a trigger interval for the check to be executed

disablePermissionChecks();

var downloads = getAllDownloadLinks();
for (a = 0; a < downloads.length; a++) {
    if (downloads[a].isEnabled()) {
            if ((downloads[a].getStatus() == "403 GEO-blocked"
                 // other conditions, enable as needed
                 // || downloads[a].getStatus() == "Retry in 15 minutes"
                 // || downloads[a].getStatus() == "Blocked by Firewall, ISP"

                 // but usually it's better to not rely on the status text as it will be different when jdownloader is not set to english
                 // use the FinalLinkStatus instead, possible status types: "FINISHED,"FAILED","FAILED_CRC32","FAILED_MD5","FAILED_SHA1","FAILED_EXISTS","FAILED_FATAL,"OFFLINE,"PLUGIN_DEFECT""
                 // || downloads[a].getFinalLinkStatus() == "FAILED"
                 )
                 // enable if you only want this action for specific hosts
                 // && ( downloads[a].getHost() == "zippyshare.com"
                 // || downloads[a].getHost() == "rapidgator.com"
                 // )
                ) {

                downloads[a].setSkipped(true);
                sleep(1000);
                downloads[a].setSkipped(false);
            }
    }
}

Direct download: raw.githubusercontent.com/FarBeyondDriven/JDscripts/refs/heads/main/UnskipDownloads.js
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader
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 01:34.
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.