Jinman Tiantang: Fix image load (#7019)

fix image load
This commit is contained in:
dngonz 2025-01-07 19:31:55 +01:00 committed by Draff
parent 8e86f6b723
commit 5a4c6a39bb
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -251,13 +251,13 @@ class Jinmantiantang : ParsedHttpSource(), ConfigurableSource {
// 漫画图片信息 // 漫画图片信息
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
tailrec fun internalParse(document: Document, pages: MutableList<Page>): List<Page> { tailrec fun internalParse(document: Document, pages: MutableList<Page>): List<Page> {
val elements = document.select("div[class=center scramble-page][id*=0]") val elements = document.select("div[class=center scramble-page spnotice_chk][id*=0]")
for (element in elements) { for (element in elements) {
pages.apply { pages.apply {
if (element.select("div[class=center scramble-page][id*=0] img").attr("src").indexOf("blank.jpg") >= 0) { if (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][id*=0] img").attr("data-original").split("\\?")[0])) add(Page(size, "", element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("data-original").split("\\?")[0]))
} else { } else {
add(Page(size, "", element.select("div[class=center scramble-page][id*=0] img").attr("src").split("\\?")[0])) add(Page(size, "", element.select("div[class=center scramble-page spnotice_chk][id*=0] img").attr("src").split("\\?")[0]))
} }
} }
} }