View Single Post
  #1045  
Old 15.01.2020, 10:37
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by platz View Post
... script for a specific hoster?
If status is "File already exists" remove link from JD
Code:
// Remove download link, if file exists on disk
// Trigger : A Download stopped

var myHosts = ["example.com", "site.com", "demo.com"];

var host = link.getDownloadHost();
var finalStatus = link.getFinalLinkStatus();

if (myHosts.indexOf(host) > -1 && finalStatus == "FAILED_EXISTS") link.remove();

Quote:
Originally Posted by platz View Post
If status is "Try restarting this link (plugin outdated?)" or "File not found" reset the link
Using script for this can result in an infinite loop. If you provide the logs, the developers might be able to check and fix it at the plugin level.
Reply With Quote