[Fix] Kuaikanmanhua - locked chapters (#1731)
* Update Kuaikanmanhua.kt * Update build.gradle
This commit is contained in:
parent
27c456e66d
commit
14e8d1ceff
@ -5,7 +5,7 @@ ext {
|
|||||||
appName = 'Tachiyomi: Kuaikanmanhua'
|
appName = 'Tachiyomi: Kuaikanmanhua'
|
||||||
pkgNameSuffix = 'zh.kuaikanmanhua'
|
pkgNameSuffix = 'zh.kuaikanmanhua'
|
||||||
extClass = '.Kuaikanmanhua'
|
extClass = '.Kuaikanmanhua'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,12 +155,19 @@ class Kuaikanmanhua : ParsedHttpSource() {
|
|||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
|
|
||||||
element.select("div.title a").let {
|
element.select("div.title a").let {
|
||||||
chapter.setUrlWithoutDomain(it.attr("href"))
|
chapter.url = it.attr("href")
|
||||||
chapter.name = it.text()
|
chapter.name = it.text() + if (element.select("i.lockedIcon").isNotEmpty()) {" \uD83D\uDD12"} else {""}
|
||||||
}
|
}
|
||||||
return chapter
|
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<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user