View Single Post
  #773  
Old 06.06.2019, 20:21
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 948
Default

Quote:
Originally Posted by mgpai View Post
I have noticed (also just tried) that if the decrypter (filecrypt.cc in this case) is blacklisted in the direct connection, it will use proxies.
Yes.

Quote:
Originally Posted by mgpai View Post
Will it cycle for the decrypter in such cases or ...
I think no.

Quote:
Originally Posted by mgpai View Post
... does it keep only using the first proxy in list. In other words is there a workaround to cycle proxies with decryrpters, or does it only work strictly with downloads?
With decrypters, nope. GeneralSettings.freeproxybalancemode is ONLY for downloads. Other functions only using the first good proxy in the list.

First the small export function in js for crazy config places.
Code:
writeFile(JD_HOME + "/tmp/biglist.json", JSON.stringify(callAPI("config", "list"),undefined,4), false);
Proxy list is under updatev2 says the list function.

My linkgrabber proxy cycle script:
Code:
// LinkGrabber Proxy cycle
// Trigger required: "New Crawler Job"

var old_proxylist = [];
var new_proxylist = [];
var first_active = "";

var settings = "org.jdownloader.updatev2.InternetConnectionSettings";
var storage = "cfg/org.jdownloader.settings.InternetConnectionSettings";
old_proxylist = callAPI("config", "get", settings, storage, "customproxylist");

for (var key in old_proxylist) {
    if (old_proxylist.hasOwnProperty(key)) {
        if (old_proxylist[key].enabled == true && first_active == "") {
            first_active = old_proxylist[key];
        } else {
            new_proxylist.push(old_proxylist[key]);
        }
    }
}
new_proxylist.push(first_active);
callAPI("config", "set", settings, storage, "customproxylist", new_proxylist);
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.
Reply With Quote