From 1feb5a5e9aec53f3fdcf4cbacca56190420aaeda Mon Sep 17 00:00:00 2001 From: Martin Tillmann Date: Mon, 22 Jan 2024 20:19:17 +0100 Subject: [PATCH] Add support for accepting any format in ChapterGenerator snapshotsFromChapters() method --- src/CLI/ChapterGenerator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CLI/ChapterGenerator.js b/src/CLI/ChapterGenerator.js index 8f0d11d..ea8df22 100644 --- a/src/CLI/ChapterGenerator.js +++ b/src/CLI/ChapterGenerator.js @@ -135,6 +135,7 @@ export class ChapterGenerator { snapshotsFromChapters() { lstatSync(this.options.inputChapters); + //todo make this accept any supported format let json = JSON.parse(readFileSync(this.options.inputChapters, 'utf-8'));