Jinman Tiantang: Fix image blank (#7067)
* fix image blank * Kotlin Syntax
This commit is contained in:
parent
bcfcc110aa
commit
b24bc5b9ca
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Jinman Tiantang'
|
||||
extClass = '.Jinmantiantang'
|
||||
extVersionCode = 44
|
||||
extVersionCode = 45
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue