修复txt的一些问题
This commit is contained in:
1 parent
222b6885c9
commit
c15381dd78
1 file changed
-1
@@ -70,7 +70,6 @@ class TextFile(private val book: Book) {
|
|||||||
if (book.tocUrl.isBlank()) {
|
if (book.tocUrl.isBlank()) {
|
||||||
if (blockContent.isEmpty()) {
|
if (blockContent.isEmpty()) {
|
||||||
length = bis.read(buffer)
|
length = bis.read(buffer)
|
||||||
book.charset = EncodingDetect.getEncode(buffer)
|
|
||||||
blockContent = String(buffer, 0, length, charset)
|
blockContent = String(buffer, 0, length, charset)
|
||||||
}
|
}
|
||||||
book.tocUrl = getTocRule(blockContent)?.pattern() ?: ""
|
book.tocUrl = getTocRule(blockContent)?.pattern() ?: ""
|
||||||
|
|||||||
Reference in new issue
Block a user