优化
This commit is contained in:
1 parent
a4cd1070aa
commit
c02676654a
1 file changed
+1
-1
@@ -126,7 +126,7 @@ class TextFile(private val book: Book) {
|
||||
val chapterContent = blockContent.substring(seekPos, chapterStart)
|
||||
val chapterLength = chapterContent.toByteArray(charset).size
|
||||
val lastStart = toc.lastOrNull()?.start ?: curOffset
|
||||
if (curOffset + chapterLength - lastStart > 50000) {
|
||||
if (curOffset + chapterLength - lastStart > 102400) {
|
||||
bis.close()
|
||||
return analyze()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user