Tools for EventScripter

ProxyCleaner
// ProxyCleaner
// Parse JD2's log files to check for proxy efficiency.
// Use the html file to manage your custom proxy list.
// (Create a shortcut on desktop for fast access)
//
// Trigger Required: "Interval"
// Options recommended: Synchronous

require(JD_HOME + "/eventscripter/ProxyCleaner.js");

var seconds = 1000; //ms
var minutes = 60 * seconds;
var hours = 60 * minutes;
var days = 24 * hours;

ProxyCleaner({
    "scriptInterval": 1 * seconds,        // 1 second is just fine
    "scriptInactiveTime": 10 * minutes,   // when there is nothing left to do
    "dataSaveDays": 5,                   // how many days of data shall be saved
    "needFinishCount": 2,                 // within 'dataSaveDays' a proxy must have atleast an amount of 'needFinishCount' finished downloads
    "proxyBanTime": 10 * days,            // or else it will get banned for 'proxyBanTime'
});