View Single Post
  #1531  
Old 09.09.2020, 08:13
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 991
Default

Quote:
Originally Posted by RedNapalm View Post
... a script that simply copies the file directory and pastes it as a comment ..
Code:
/*
    On download finished, append download folder to comment
    Trigger: A Download Stopped
*/

if (link.finished) {
    var comment = link.comment || "",
        folder = link.package.getDownloadFolder();

    if (comment.indexOf(folder) == -1) {
        link.comment = comment + folder;
    }
}
Reply With Quote