|
|
@@ -699,12 +699,13 @@ async function generateEpub(contentFilePath, coverImagePath, outputPath, bookTit
|
|
699
|
699
|
*/
|
|
700
|
700
|
|
|
701
|
701
|
//const title = "Zhui-Xu";
|
|
702
|
|
-const title = 'Release-that-Witch';
|
|
|
702
|
+const title="Throne-of-Magical-Arcana";
|
|
|
703
|
+//const title = 'Release-that-Witch';
|
|
703
|
704
|
//const title = 'Strange-Life-of-a-Cat';
|
|
704
|
705
|
//const title = "Hidden-Assassin";
|
|
705
|
706
|
//const author = "Angry Banana";
|
|
706
|
|
-const author = "";
|
|
707
|
|
-const coverName = "cover.jpeg";
|
|
|
707
|
+const author = "Cuttlefish That Loves Diving";
|
|
|
708
|
+const coverName = "cover.jpg";
|
|
708
|
709
|
|
|
709
|
710
|
// 从命令行参数获取小说标题
|
|
710
|
711
|
|
|
|
@@ -731,7 +732,7 @@ if (!fs.existsSync(outputDir)) {
|
|
731
|
732
|
fs.mkdirSync(outputDir, { recursive: true });
|
|
732
|
733
|
}
|
|
733
|
734
|
|
|
734
|
|
-if (1==0){
|
|
|
735
|
+if (1==1){
|
|
735
|
736
|
await runScript(title, debug, outputDir, fetchContent)
|
|
736
|
737
|
.then(result => {
|
|
737
|
738
|
if (result && result.errcode) {
|
|
|
@@ -754,7 +755,7 @@ let outputFile2 = path.join(__dirname, title+'/'+title+'.html');
|
|
754
|
755
|
let coverFile=path.join(__dirname, title+'/'+coverName);
|
|
755
|
756
|
let epubFile=path.join(__dirname, title+'/'+title+'.epub');
|
|
756
|
757
|
|
|
757
|
|
-if (1==0){
|
|
|
758
|
+if (1==1){
|
|
758
|
759
|
await mergeChapterFiles(sourceDir, outputFile)
|
|
759
|
760
|
.then(() => console.log('合并操作完成'))
|
|
760
|
761
|
.catch(err => console.error('合并操作失败:', err));
|