Settle on "Patrol <lowercase>" and "the Patrol"
This is reversing the decision made in 84e0d83bd1, and extending the revised decision to other Patrol-related terms.
This commit is contained in:
parent
6b5bedcbc7
commit
4fbaa0e8db
3 changed files with 17 additions and 11 deletions
|
|
@ -4,7 +4,7 @@ const fs = require("fs").promises;
|
|||
const workerpool = require("workerpool");
|
||||
const cliProgress = require("cli-progress");
|
||||
|
||||
module.exports = async (cachePath, manifestPath, contentPath, concurrentJobs) => {
|
||||
module.exports = async (cachePath, manifestPath, contentPath, book, concurrentJobs) => {
|
||||
const manifestContents = await fs.readFile(manifestPath, { encoding: "utf-8" });
|
||||
const chapters = JSON.parse(manifestContents);
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ module.exports = async (cachePath, manifestPath, contentPath, concurrentJobs) =>
|
|||
const destFileName = `${path.basename(chapter.filename, ".html")}.xhtml`;
|
||||
const outputPath = path.resolve(contentPath, destFileName);
|
||||
|
||||
await pool.exec("convertChapter", [chapter, inputPath, outputPath]);
|
||||
await pool.exec("convertChapter", [chapter, book, inputPath, outputPath]);
|
||||
|
||||
progress.increment();
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue