|  |  |  | @ -95,13 +95,19 @@ object BookContent { | 
			
		
	
		
			
				
					|  |  |  |  |                 content.append(item.content).append("\n") | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         content.deleteCharAt(content.length - 1) | 
			
		
	
		
			
				
					|  |  |  |  |         var contentStr = content.toString().htmlFormat() | 
			
		
	
		
			
				
					|  |  |  |  |         val replaceRegex = bookSource.ruleContent?.replaceRegex | 
			
		
	
		
			
				
					|  |  |  |  |         replaceRegex?.trim { it <= ' ' }?.split("##")?.let { | 
			
		
	
		
			
				
					|  |  |  |  |             if (it.size > 1) { | 
			
		
	
		
			
				
					|  |  |  |  |                 contentStr = contentStr.replace(it[1].toRegex(), it.getOrNull(2) ?: "") | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         Debug.log(bookSource.bookSourceUrl, "┌获取章节名称") | 
			
		
	
		
			
				
					|  |  |  |  |         Debug.log(bookSource.bookSourceUrl, "└${bookChapter.title}") | 
			
		
	
		
			
				
					|  |  |  |  |         Debug.log(bookSource.bookSourceUrl, "┌获取正文内容") | 
			
		
	
		
			
				
					|  |  |  |  |         Debug.log(bookSource.bookSourceUrl, "└\n$content") | 
			
		
	
		
			
				
					|  |  |  |  |         return content.toString() | 
			
		
	
		
			
				
					|  |  |  |  |         Debug.log(bookSource.bookSourceUrl, "└\n$contentStr") | 
			
		
	
		
			
				
					|  |  |  |  |         return contentStr | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Throws(Exception::class) | 
			
		
	
	
		
			
				
					|  |  |  | @ -126,7 +132,7 @@ object BookContent { | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             Debug.log(bookSource.bookSourceUrl, "└" + nextUrlList.joinToString(","), printLog) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         val content = analyzeRule.getString(contentRule.content).htmlFormat() | 
			
		
	
		
			
				
					|  |  |  |  |         val content = analyzeRule.getString(contentRule.content) | 
			
		
	
		
			
				
					|  |  |  |  |         return ContentData(content, nextUrlList) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | } |