diff --git a/src/zh/kuaikanmanhua/build.gradle b/src/zh/kuaikanmanhua/build.gradle index ab505368a..3118b5603 100644 --- a/src/zh/kuaikanmanhua/build.gradle +++ b/src/zh/kuaikanmanhua/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Kuaikanmanhua' pkgNameSuffix = 'zh.kuaikanmanhua' extClass = '.Kuaikanmanhua' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt b/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt index 3414348a7..d5cb93289 100644 --- a/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt +++ b/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt @@ -155,12 +155,19 @@ class Kuaikanmanhua : ParsedHttpSource() { val chapter = SChapter.create() element.select("div.title a").let { - chapter.setUrlWithoutDomain(it.attr("href")) - chapter.name = it.text() + chapter.url = it.attr("href") + chapter.name = it.text() + if (element.select("i.lockedIcon").isNotEmpty()) {" \uD83D\uDD12"} else {""} } return chapter } + override fun pageListRequest(chapter: SChapter): Request { + if (chapter.url=="javascript:void(0);") { + return throw Exception("[此章节为付费内容]") + } + return super.pageListRequest(chapter) + } + override fun pageListParse(document: Document): List { val pages = mutableListOf()