From 1ac441710f1d10012678ba0e78e07b1cfd843e4b Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Mon, 14 Nov 2022 19:05:01 +0800 Subject: [PATCH] Baozi Manhua: fix page list parsing (#14255) --- src/zh/baozimanhua/CHANGELOG.md | 4 ++++ src/zh/baozimanhua/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/zh/baozimanhua/CHANGELOG.md b/src/zh/baozimanhua/CHANGELOG.md index dc8010cb2..26bd5d51f 100644 --- a/src/zh/baozimanhua/CHANGELOG.md +++ b/src/zh/baozimanhua/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.14 (2022-11-14) + +- 修复未分页的章节不断加载后续章节图片的问题 + ## 1.3.13 (2022-11-09) - 修复章节目录和图片分页 diff --git a/src/zh/baozimanhua/build.gradle b/src/zh/baozimanhua/build.gradle index cafb98730..8dc44c060 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 = 13 + extVersionCode = 14 } 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 ab6d68961..7deac908a 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 @@ -144,7 +144,10 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { }.mapTo(pageList) { element -> Page(i++, imageUrl = element.attr("src")) } - url = document.selectFirst(Evaluator.Id("next-chapter"))?.attr("href") ?: break + url = document.selectFirst(Evaluator.Id("next-chapter")) + ?.takeIf { it.text() == "下一页" } + ?.attr("href") + ?: break } pageList }