pull/84/head
kunfei 5 years ago
parent c043b16fa6
commit 23e0d44667
  1. 4
      app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt

@ -168,14 +168,14 @@ object AnalyzeTxtFile {
System.runFinalization() System.runFinalization()
} }
} }
bookStream.close()
for (i in toc.indices) { for (i in toc.indices) {
val bean = toc[i] val bean = toc[i]
bean.index = i bean.index = i
bean.bookUrl = book.bookUrl bean.bookUrl = book.bookUrl
bean.url = (MD5Utils.md5Encode16(book.originName + i + bean.title) ?: "") bean.url = (MD5Utils.md5Encode16(book.originName + i + bean.title) ?: "")
} }
bookStream.close() book.latestChapterTitle = toc.last().title
System.gc() System.gc()
System.runFinalization() System.runFinalization()

Loading…
Cancel
Save