From b24bc5b9cabdc0995a99cc522cd6a18e2d07f7fa Mon Sep 17 00:00:00 2001 From: pjy612 <4072526+pjy612@users.noreply.github.com> Date: Wed, 8 Jan 2025 22:06:43 +0800 Subject: [PATCH] Jinman Tiantang: Fix image blank (#7067) * fix image blank * Kotlin Syntax --- src/zh/jinmantiantang/build.gradle | 2 +- .../tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zh/jinmantiantang/build.gradle b/src/zh/jinmantiantang/build.gradle index a72d7819f..858235821 100644 --- a/src/zh/jinmantiantang/build.gradle +++ b/src/zh/jinmantiantang/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Jinman Tiantang' extClass = '.Jinmantiantang' - extVersionCode = 44 + extVersionCode = 45 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 0e3e1a57e..6c79c0f91 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,9 @@ class Jinmantiantang : ParsedHttpSource(), ConfigurableSource { val elements = document.select("div[class=center scramble-page spnotice_chk][id*=0]") for (element in elements) { pages.apply { - if (element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("data-cfsrc").indexOf("blank.jpg") >= 0) { + if (element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("src").indexOf("blank.jpg") >= 0 || + element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("data-cfsrc").indexOf("blank.jpg") >= 0 + ) { add(Page(size, "", element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("data-original").split("\\?")[0])) } else { add(Page(size, "", element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("src").split("\\?")[0]))