修复txt的一些问题

pull/1649/head
kunfei 3 years ago
parent 6fe7cb7f63
commit 424abfdf1c
  1. 1
      app/src/main/java/io/legado/app/model/localBook/TextFile.kt

@ -70,7 +70,6 @@ class TextFile(private val book: Book) {
if (book.tocUrl.isBlank()) {
if (blockContent.isEmpty()) {
length = bis.read(buffer)
book.charset = EncodingDetect.getEncode(buffer)
blockContent = String(buffer, 0, length, charset)
}
book.tocUrl = getTocRule(blockContent)?.pattern() ?: ""

Loading…
Cancel
Save