This commit is contained in:
Xwite 2023-03-10 22:14:51 +08:00
parent a4b1b82c36
commit 52c944b225

View File

@ -137,7 +137,7 @@ class EpubFile(var book: Book) {
}
/*获取当前章节文本*/
epubBook?.let { epubBook ->
val nextChapterFirstResourceHref = chapter.getVariable("nextUrl").substringBeforeLast("#")
val nextChapterFirstResourceHref = chapter.getVariable("nextUrl")?.substringBeforeLast("#")
val currentChapterFirstResourceHref = chapter.url.substringBeforeLast("#")
val startFragmentId = chapter.startFragmentId
val endFragmentId = chapter.endFragmentId