|
|
|
@ -2,7 +2,6 @@ package io.legado.app.model.webBook |
|
|
|
|
|
|
|
|
|
import io.legado.app.App |
|
|
|
|
import io.legado.app.R |
|
|
|
|
import io.legado.app.constant.BookType |
|
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
|
import io.legado.app.data.entities.BookChapter |
|
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
@ -40,11 +39,7 @@ object BookContent { |
|
|
|
|
var contentData = analyzeContent( |
|
|
|
|
book, baseUrl, body, contentRule, bookChapter, bookSource |
|
|
|
|
) |
|
|
|
|
if (bookSource.bookSourceType == BookType.default) { |
|
|
|
|
content.append(contentData.content.replace(bookChapter.title, "")).append("\n") |
|
|
|
|
} else { |
|
|
|
|
content.append(contentData.content).append("\n") |
|
|
|
|
} |
|
|
|
|
content.append(contentData.content).append("\n") |
|
|
|
|
|
|
|
|
|
if (contentData.nextUrl.size == 1) { |
|
|
|
|
var nextUrl = contentData.nextUrl[0] |
|
|
|
|