Simple history of downloaded links in text format.
- Default folder: "<jdownloader>\auto\history" (e.g "c:\jdownloader\auto\history")
- Default file name: "<current date>.txt" (e.g. "Oct 07 2016.txt")
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);
}