From ed0f8fbc3f24359098272577862c04b1b3b638eb Mon Sep 17 00:00:00 2001 From: KoSChicken Date: Sat, 19 Feb 2022 07:12:16 +0800 Subject: [PATCH] Fix jinmantiantang manga status error. (#10833) * fix jinmantiantang * fix jinmantiantang Manga status --- src/zh/jinmantiantang/build.gradle | 2 +- .../tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zh/jinmantiantang/build.gradle b/src/zh/jinmantiantang/build.gradle index 2d59cfc10..ddda11281 100644 --- a/src/zh/jinmantiantang/build.gradle +++ b/src/zh/jinmantiantang/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Jinmantiantang' pkgNameSuffix = 'zh.jinmantiantang' extClass = '.Jinmantiantang' - extVersionCode = 19 + extVersionCode = 20 isNsfw = true } diff --git a/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt b/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt index da08cc9cf..a6932960a 100644 --- a/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt +++ b/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt @@ -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 " }