chengjie 2 月之前
父節點
當前提交
08d82aa0f3
共有 2 個文件被更改,包括 7 次插入8 次删除
  1. 1 3
      .gitignore
  2. 6 5
      src/web_crawler/crawle.js

+ 1 - 3
.gitignore

@@ -9,9 +9,7 @@ public/VGeyix4D39.txt
9 9
 public/ZxGw5vkQbG.txt
10 10
 .DS_Store
11 11
 src/web_crawler/Zhui-Xu/
12
-src/web_crawler/Zhui-Xu/Zhui-Xu_contents/
13 12
 src/web_crawler/Hidden-Assassin/
14 13
 src/web_crawler/Release-that-Witch/
15
-src/web_crawler/Release-that-Witch/Release-that-Witch_contents/
16 14
 src/web_crawler/Strange-Life-of-a-Cat/
17
-src/web_crawler/Strange-Life-of-a-Cat/Strange-Life-of-a-Cat_contents/
15
+src/web_crawler/Throne-of-Magical-Arcana/

+ 6 - 5
src/web_crawler/crawle.js

@@ -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));