View Single Post
  #2539  
Old 07.01.2023, 01:14
Alexpark24 Alexpark24 is offline
Junior Loader
 
Join Date: Jan 2023
Posts: 13
Default

Good Gentlemen, I would like to know if there is any way that Jdownloader 2 can read the links saved in an X link history folder and that when the file is previously downloaded it marks it as if it were downloading in red or if it can be another color Whatever, if there is a script for that or if something occurs to you, please tell me the code. Thank you very much. In the same way, I thank you for paying attention to me and I currently have a script from here that It creates a text file per day, I wish it was just one and they simply added more links, but it creates 1 text file per day with date. If there is a way for a script to filter those links where it is generated in the auto folder I would appreciate it very much. i use this
Code:
// Simple history
// Trigger Required : A Download Stopped

if (link.isFinished()) {
    var a /*date*/ = new Date().toString().substring(4, 16);
    var b /*history folder*/ = JD_HOME + "/auto/history/";
    var c /*history file Name */ = a + ".txt";
    var d /*download url*/ = link.getContentURL();
    var e /*download file name*/ = link.getName();

    if (!getPath(b).exists()) getPath(b).mkdirs();
    writeFile(b + c, [d, e].join(",") + "\r\n", true);
}

Last edited by Alexpark24; 10.01.2023 at 16:52.
Reply With Quote