View Single Post
  #4  
Old 22.03.2021, 16:02
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,370
Default

Code:
/*
    Trigger : A Download Started
*/

while (link.isRunning() && link.getBytesTotal() == -1) {
    sleep(1000);
}

if (link.getBytesTotal() >= 1024 * 1024 * 20) {
    link.setEnabled(false);
}
Reply With Quote