diff --git a/src/zh/baozimanhua/CHANGELOG.md b/src/zh/baozimanhua/CHANGELOG.md index 91cf14a0c..27ca28b91 100644 --- a/src/zh/baozimanhua/CHANGELOG.md +++ b/src/zh/baozimanhua/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.18 (2023-01-12) + +- 修复繁体站点章节列表错乱的问题 + ## 1.3.17 (2022-12-29) - 修复部分图片无法加载的问题 diff --git a/src/zh/baozimanhua/build.gradle b/src/zh/baozimanhua/build.gradle index c42ad4f3c..95165866c 100644 --- a/src/zh/baozimanhua/build.gradle +++ b/src/zh/baozimanhua/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Baozi Manhua' pkgNameSuffix = 'zh.baozimanhua' extClass = '.Baozi' - extVersionCode = 17 + extVersionCode = 18 } apply from: "$rootDir/common.gradle" diff --git a/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt b/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt index a2da20214..4e65554c8 100644 --- a/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt +++ b/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt @@ -61,7 +61,7 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { override fun chapterListParse(response: Response): List { val document = response.asJsoup() - val fullListTitle = document.selectFirst(".section-title:containsOwn(章节目录)") + val fullListTitle = document.selectFirst(".section-title:containsOwn(章节目录), .section-title:containsOwn(章節目錄)") return if (fullListTitle == null) { // only latest chapters document.select(Evaluator.Class("comics-chapters")) } else { @@ -123,15 +123,13 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { override fun mangaDetailsParse(document: Document): SManga { return SManga.create().apply { - title = document.select("h1.comics-detail__title").text().trim() + title = document.select("h1.comics-detail__title").text() thumbnail_url = document.select("div.pure-g div > amp-img").attr("src").trim() - author = document.select("h2.comics-detail__author").text().trim() - description = document.select("p.comics-detail__desc").text().trim() - status = when (document.selectFirst("div.tag-list > span.tag").text().trim()) { - "连载中" -> SManga.ONGOING - "已完结" -> SManga.COMPLETED - "連載中" -> SManga.ONGOING - "已完結" -> SManga.COMPLETED + author = document.select("h2.comics-detail__author").text() + description = document.select("p.comics-detail__desc").text() + status = when (document.selectFirst("div.tag-list > span.tag").text()) { + "连载中", "連載中" -> SManga.ONGOING + "已完结", "已完結" -> SManga.COMPLETED else -> SManga.UNKNOWN } }