mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
fix(epub): 最后一章内容缺失
This commit is contained in:
@@ -141,7 +141,8 @@ class EpubFile(var book: Book) {
|
||||
*/
|
||||
if (!nextUrl.isNullOrBlank() && res.href == nextUrl!!.substringBeforeLast("#")) break
|
||||
} else if (isChapter) {
|
||||
if (nextUrl.isNullOrBlank() || res.href == nextUrl.substringBeforeLast("#")) {
|
||||
// fix 最后一章存在多个html时 内容缺失
|
||||
if (!nextUrl.isNullOrBlank() && res.href == nextUrl.substringBeforeLast("#")) {
|
||||
break
|
||||
}
|
||||
elements.add(getBody(res, startFragmentId, endFragmentId))
|
||||
|
||||
Reference in New Issue
Block a user