From fc8e528e636b3845e83a79a865427f3912d29d68 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Sat, 10 Apr 2021 11:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BAepub?= =?UTF-8?q?=E7=BC=BA=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/cache/CacheViewModel.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)