Add new settings jpn_title to export zip task

This commit is contained in:
2023-06-11 09:34:19 +08:00
parent 28387eda1c
commit f16264dfbc
10 changed files with 48 additions and 12 deletions

View File

@@ -101,15 +101,14 @@ export class TaskManager extends EventTarget {
};
return await this.#add_task(task);
}
async add_export_zip_task(gid: number, output?: string) {
const cfg: ExportZipConfig = { output };
async add_export_zip_task(gid: number, cfg?: ExportZipConfig) {
const task: Task = {
gid,
token: "",
id: 0,
pid: Deno.pid,
type: TaskType.ExportZip,
details: JSON.stringify(cfg),
details: JSON.stringify(cfg || DEFAULT_EXPORT_ZIP_CONFIG),
};
return await this.#add_task(task);
}