修复txt的一些问题

This commit is contained in:
kunfei
2022-02-23 19:29:24 +08:00
parent 6fe7cb7f63
commit 424abfdf1c

View File

@@ -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() ?: ""