View Single Post
  #782  
Old 14.06.2019, 20:19
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 884
Default

Quote:
Originally Posted by Jiaz View Post
Also added new ConditionalSkipReasonSandbox via link.getConditionalSkipReason()
Thanks but I see in my new tests with previous uploaded link not really (more) temp reasons (e.g. 2-3h, download limit has been reached) ?

Example:
Code:
var mytest = true;
var newm = "";
var links = getAllDownloadLinks();
for (i = 0; i < links.length; i++) {
    var link = links[i];
    if (link.isEnabled()) {
        var reason = link.getConditionalSkipReason();
        newm = (link.getHost() + " 0:" + link.getEta() + " 1:" + link.getStatus() + " 2:" + link.getSkippedReason() + " 3:" + link.getFinalLinkStatus())+"\n";        
        newm += "getWaitingSkipReason: "+reason.getWaitingSkipReason() + "\n";

        if (reason.isConditionReached() || mytest) {
            newm += (reason.getClassName() + "," + reason.getMessage() + "\n"); //WaitWhileWaitingSkipReasonIsSet, null
        }
        if (reason.isTimeOutCondition() || mytest) {
            newm += (reason.getTimeOutTimeStamp() + "," + reason.getTimeOutLeft()+"\n"); //-1,-1
        }
        if (reason.isDownloadLinkCondition() || mytest) {
            newm += (reason.getDownloadLinkCondition() +"\n");
        }
        alert(newm);
        break;
    }
}
Is my code wrong or not possible with "download limit has been reached" in this case?

Screenshot:

__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.

Last edited by thecoder2012; 14.06.2019 at 20:22.
Reply With Quote