View Single Post
  #1827  
Old 22.08.2021, 10:21
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,484
Default

@iLITT: Try this script. If it does not solve your problem, find me in JD Chat.

Code:
/*
    Monitor connection
    Trigger: JDownloader started
*/

monitorConnection();

function monitorConnection() {
    var browser, connected, running = isDownloadControllerRunning();

    try {
        browser = getBrowser();
        browser.getPage("http" + "://1.1.1.1");
        connected = browser.responseCode == 301;
    } catch (e) {};

    running && !connected && stopDownloads();
    connected && !running && startDownloads();

    sleep(5000);
    monitorConnection();
}
Reply With Quote