Last active
August 11, 2022 13:32
-
-
Save KorigamiK/088fea6fa992f60a5e0136bf3826e384 to your computer and use it in GitHub Desktop.
Jdownloader CrawlJobs Schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
interface Job { | |
downloadFolder?: null | String; // null, | |
chunks?: number; // 0, | |
overwritePackagizerEnabled?: true | false; // true, | |
extractAfterDownload?: null | "UNSET" | "TRUE" | "FALSE"; // "UNSET", | |
priority?: | |
| null | |
| "HIGHEST" | |
| "HIGHER" | |
| "HIGH" | |
| "DEFAULT" | |
| "LOW" | |
| "LOWER" | |
| "LOWEST"; // null | |
type?: "NORMAL"; // ("NORMAL") | |
enabled?: null | "UNSET" | "TRUE" | "FALSE"; // null, | |
autoStart?: null | "UNSET" | "TRUE" | "FALSE"; // "UNSET", | |
forcedStart?: null | "UNSET" | "TRUE" | "FALSE"; // "UNSET", | |
addOfflineLink?: true | false; // true, | |
extractPasswords?: null | String[]; // (null,["pw1","pw2"]) | |
downloadPassword?: null | String; // null, | |
filename?: null | String; // null, | |
autoConfirm?: null | "UNSET" | "TRUE" | "FALSE"; //"UNSET" | |
comment?: null | String; // null, | |
text?: null | String; // null, | |
packageName?: null | String; // null | |
deepAnalyseEnabled?: true | false; // false, | |
setBeforePackagizerEnabled?: true | false; // false | |
} | |
function writeFile(fileName: string, data: any) { | |
fs.writeFile(fileName, JSON.stringify(data), function (err: any) { | |
if (err) throw err; | |
console.log("complete"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment