View Single Post
  #83  
Old 30.04.2017, 10:47
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 612
Default

Quote:
Originally Posted by blacksun View Post
... remove skipped-status every 60 minutes
- only links with "skipped no account" should be affected, ...
Code:
// Unskip 'account missing' links at user specified interval
// Trigger Required : "Interval"
// Set interval to 3600000 (60 minutes)

var links = getAllDownloadLinks();

for (i = 0; i < links.length; i++) {
    var link = links[i];
    if (link.isSkipped() && link.getSkippedReason() == "NO_ACCOUNT") {
        link.setSkipped(false);
    }
}
Reply With Quote