feat(scripts): live download progress and persisted request list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
masi
2026-09-26 16:21:13 -03:00
parent cbb0f7db9c
commit c1166d5211
3 changed files with 62 additions and 9 deletions
+2 -1
View File
@@ -55,7 +55,8 @@ await Promise.all(
plugin.parseChapter(chapters[i].path),
);
bodies[i] = toXhtml(html);
if (++done % 50 === 0 || done === chapters.length) {
// Every 5 chapters: the request page shows this as live progress.
if (++done % 5 === 0 || done === chapters.length) {
process.stderr.write(` ${done}/${chapters.length}\n`);
}
}