@mgpai
Script causes error:
Code:
/*
New Core Revision Notification
Trigger : JDownloader started
*/
var list = "";
var file = JD_HOME + "/revisions.txt";
var revision = callAPI("jd", "getCoreRevision");
try {
list = readFile(file);
} catch (e) {};
if (list.indexOf(revision) == -1) {
writeFile(file, revision + "\r\n", true);
alert("" + revision);
}
First real live test with a new core update.
On JD restart I'm getting this error message:
In test run it works fine!
What's wrong?
In case you need them, I also copied the details to a file.