Skip to content

Commit

Permalink
fix parse_chapter_data
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Oct 20, 2024
1 parent 065e154 commit 01f1a96
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions novel.cmn-Hans-CN/piaotian.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,18 @@ crawler = new CeL.work_crawler({
// 去除掉 <script> 功能碼。
.replace(/<script[^<>]*>[^<>]*<\/script>/g, '');

/**
* <code>
// https://www.piaotia.com/html/14/14466/9767526.html 女主从书里跑出来了怎么办 第三十三章 有什么不好
&nbsp;&nbsp;&nbsp;&nbsp;<!--go-->&nbsp;&nbsp;&nbsp;&nbsp;那边
你了解我多少?”<!--over--><br /><br />
</code>
*/
// text = text.replace(/(?:&nbsp;)*<!--go-->/g, '');
text = text.replace(/<!--[\w\s]*-->/g, '');

// ----------------------------

// 有些章節會先以章節標題起頭。
Expand Down Expand Up @@ -334,6 +346,16 @@ crawler = new CeL.work_crawler({
*/
.replace(/谷\/span>/g, '')

/**
* <code>
// https://www.piaotia.com/html/11/11613/8651816.html 剑仙三千万 第三百九十章 玄黄星至强
说完 ,他又想到了什么,
</code>
*/
.replace(/完 (\S)/g, '完$1')

/**
* <code>
Expand Down

0 comments on commit 01f1a96

Please sign in to comment.