|
|
@ -243,10 +243,8 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
BookHelp.getContent(book, chapter).let { content -> |
|
|
|
BookHelp.getContent(book, chapter).let { content -> |
|
|
|
var content1 = fixPic(epubBook, book, content ?: "null", chapter) |
|
|
|
var content1 = fixPic(epubBook, book, content ?: "null", chapter) |
|
|
|
content1 = contentProcessor |
|
|
|
content1 = contentProcessor |
|
|
|
.getContent(book, chapter.title, content1, false, useReplace) |
|
|
|
.getContent(book, "", content1, false, useReplace) |
|
|
|
.joinToString("\n") |
|
|
|
.joinToString("\n") |
|
|
|
.replaceFirst(chapter.title, "") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epubBook.addSection( |
|
|
|
epubBook.addSection( |
|
|
|
chapter.title, |
|
|
|
chapter.title, |
|
|
|
ResourceUtil.createHTMLResource(chapter.title, content1) |
|
|
|
ResourceUtil.createHTMLResource(chapter.title, content1) |
|
|
|