Fix jinmantiantang manga status error. (#10833)

* fix jinmantiantang

* fix jinmantiantang Manga status
This commit is contained in:
KoSChicken 2022-02-19 07:12:16 +08:00 committed by GitHub
parent c42cf60d41
commit ed0f8fbc3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Jinmantiantang'
pkgNameSuffix = 'zh.jinmantiantang'
extClass = '.Jinmantiantang'
extVersionCode = 19
extVersionCode = 20
isNsfw = true
}

View File

@ -254,7 +254,7 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
// 查询漫画状态和类别信息
private fun selectDetailsStatusAndGenre(document: Document, index: Int): String {
var status = "2"
var status = "0"
var genre = ""
if (document.select("span[itemprop=genre] a").size == 0) {
return if (index == 1) {
@ -269,6 +269,9 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
"連載中" -> {
status = "1"
}
"完結" -> {
status = "2"
}
else -> {
genre = "$genre$vote "
}