Skip to content

Commit

Permalink
Jinman Tiantang: Fix image blank (#7067)
Browse files Browse the repository at this point in the history
* fix image blank

* Kotlin Syntax
  • Loading branch information
pjy612 authored Jan 8, 2025
1 parent 35ae266 commit 766b984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zh/jinmantiantang/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Jinman Tiantang'
extClass = '.Jinmantiantang'
extVersionCode = 44
extVersionCode = 45
isNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit 766b984

Please sign in to comment.