Fix jinmantiantang manga status error. (#10833)
* fix jinmantiantang * fix jinmantiantang Manga status
This commit is contained in:
parent
c42cf60d41
commit
ed0f8fbc3f
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Jinmantiantang'
|
extName = 'Jinmantiantang'
|
||||||
pkgNameSuffix = 'zh.jinmantiantang'
|
pkgNameSuffix = 'zh.jinmantiantang'
|
||||||
extClass = '.Jinmantiantang'
|
extClass = '.Jinmantiantang'
|
||||||
extVersionCode = 19
|
extVersionCode = 20
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
|
||||||
|
|
||||||
// 查询漫画状态和类别信息
|
// 查询漫画状态和类别信息
|
||||||
private fun selectDetailsStatusAndGenre(document: Document, index: Int): String {
|
private fun selectDetailsStatusAndGenre(document: Document, index: Int): String {
|
||||||
var status = "2"
|
var status = "0"
|
||||||
var genre = ""
|
var genre = ""
|
||||||
if (document.select("span[itemprop=genre] a").size == 0) {
|
if (document.select("span[itemprop=genre] a").size == 0) {
|
||||||
return if (index == 1) {
|
return if (index == 1) {
|
||||||
|
@ -269,6 +269,9 @@ class Jinmantiantang : ConfigurableSource, ParsedHttpSource() {
|
||||||
"連載中" -> {
|
"連載中" -> {
|
||||||
status = "1"
|
status = "1"
|
||||||
}
|
}
|
||||||
|
"完結" -> {
|
||||||
|
status = "2"
|
||||||
|
}
|
||||||
else -> {
|
else -> {
|
||||||
genre = "$genre$vote "
|
genre = "$genre$vote "
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue