Jinman Tiantang: Fix image blank (#7067)

* fix image blank

* Kotlin Syntax
This commit is contained in:
pjy612 2025-01-08 22:06:43 +08:00 committed by Draff
parent bcfcc110aa
commit b24bc5b9ca
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Jinman Tiantang'
extClass = '.Jinmantiantang'
extVersionCode = 44
extVersionCode = 45
isNsfw = true
}

View File

@ -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]))