diff --git a/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt b/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt index 145558a07..30f172615 100644 --- a/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt @@ -168,14 +168,14 @@ object AnalyzeTxtFile { System.runFinalization() } } - + bookStream.close() for (i in toc.indices) { val bean = toc[i] bean.index = i bean.bookUrl = book.bookUrl bean.url = (MD5Utils.md5Encode16(book.originName + i + bean.title) ?: "") } - bookStream.close() + book.latestChapterTitle = toc.last().title System.gc() System.runFinalization()