View Single Post
  #1873  
Old 24.09.2021, 09:37
dariotoby dariotoby is offline
Baby Loader
 
Join Date: Nov 2018
Posts: 5
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Write info to text file
    Trigger:  A Download stopped
*/

if (link.finished) {
    var name = link.name;
    var url = link.contentURL || link.pluginURL;
    var data = [name, url];

    var file = "linkInfo";
    var folder = link.package.downloadFolder;
    var filePath = getPath(folder + "/" + file + ".txt");

    writeFile(filePath, data.join(", ") + "\r\n", true);
}
I wanted to know if you could change this script so that the TXT file wrote it when the files are loaded in the Capture Links window not after downloading?
Then if you could write in this format: "file name (without extension), file extension, download link"
Reply With Quote