View Single Post
  #5  
Old 20.10.2020, 12:45
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,054
Default

Quote:
Originally Posted by dbrown1986 View Post
... add a function to clear the download from the download list after it has been moved?
Code:
// Move downloaded files to user-specified folder and remove the link from download list
// Trigger: A Download Stopped

if (link.finished) {
    var destinationFolder = "/home/";
    getPath(link.downloadPath).moveTo(destinationFolder);
    link.remove();
}
Reply With Quote