Add support to import gallery

This commit is contained in:
2024-06-07 20:49:21 +08:00
parent 0e841b61a5
commit fc81a4e1af
10 changed files with 533 additions and 19 deletions

View File

@@ -33,9 +33,7 @@ export async function export_zip(
const gid = task.gid;
const g = db.get_gmeta_by_gid(gid);
if (!g) throw Error("Gallery not found in database.");
const jpn_title = ecfg.jpn_title !== undefined
? ecfg.jpn_title
: cfg.export_zip_jpn_title;
const jpn_title = ecfg.jpn_title ?? cfg.export_zip_jpn_title;
const progress: TaskExportZipProgress = {
total_page: Number(g.filecount),
added_page: 0,