pull/48/head
kunfei 5 years ago
parent a96303e53f
commit 22f7dad49a
  1. 5
      app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt

@ -158,12 +158,11 @@ object BookChapterList {
val urlRule = analyzeRule.splitSourceRule(tocRule.chapterUrl ?: "")
for (item in elements) {
analyzeRule.setContent(item)
val title = analyzeRule.getString(nameRule)
if (title.isNotEmpty()) {
val bookChapter = BookChapter(bookUrl = book.bookUrl)
bookChapter.title = title
bookChapter.title = analyzeRule.getString(nameRule)
bookChapter.url = analyzeRule.getString(urlRule, true)
if (bookChapter.url.isEmpty()) bookChapter.url = baseUrl
if (bookChapter.title.isNotEmpty()) {
chapterList.add(bookChapter)
}
}

Loading…
Cancel
Save