diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt index 1f2d37e57..55ecb17eb 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt @@ -243,10 +243,8 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { BookHelp.getContent(book, chapter).let { content -> var content1 = fixPic(epubBook, book, content ?: "null", chapter) content1 = contentProcessor - .getContent(book, chapter.title, content1, false, useReplace) + .getContent(book, "", content1, false, useReplace) .joinToString("\n") - .replaceFirst(chapter.title, "") - epubBook.addSection( chapter.title, ResourceUtil.createHTMLResource(chapter.title, content1)