diff --git a/src/zh/baozimanhua/CHANGELOG.md b/src/zh/baozimanhua/CHANGELOG.md index 26bd5d51f..96bc29222 100644 --- a/src/zh/baozimanhua/CHANGELOG.md +++ b/src/zh/baozimanhua/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.3.15 (2022-11-20) + +- 尝试绕过 Cloudflare +- 修复繁体镜像无法加载多页图片的问题 + ## 1.3.14 (2022-11-14) - 修复未分页的章节不断加载后续章节图片的问题 diff --git a/src/zh/baozimanhua/build.gradle b/src/zh/baozimanhua/build.gradle index 8dc44c060..9ab8f02f9 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 = 14 + extVersionCode = 15 } 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 7deac908a..5c7c6e822 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 @@ -47,7 +47,7 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { level = preferences.getString(BaoziBanner.PREF, DEFAULT_LEVEL)!!.toInt() ) - override val client = network.client.newBuilder() + override val client = network.cloudflareClient.newBuilder() .rateLimit(2) .addInterceptor(bannerInterceptor) .build() @@ -145,7 +145,10 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { Page(i++, imageUrl = element.attr("src")) } url = document.selectFirst(Evaluator.Id("next-chapter")) - ?.takeIf { it.text() == "下一页" } + ?.takeIf { + val text = it.text() + text == "下一页" || text == "下一頁" + } ?.attr("href") ?: break }