fix baozi img url when page need a confirm (#17297)

* baozi: use data-src as img url

* bump
This commit is contained in:
rhjdvsgsgks 2023-07-29 02:29:17 +00:00 committed by GitHub
parent 52b2ef26fb
commit 15d527bac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Baozi Manhua'
pkgNameSuffix = 'zh.baozimanhua'
extClass = '.Baozi'
extVersionCode = 19
extVersionCode = 20
}
apply from: "$rootDir/common.gradle"

View File

@ -144,7 +144,7 @@ class Baozi : ParsedHttpSource(), ConfigurableSource {
document.select(".comic-contain amp-img").dropWhile { element ->
element.selectFirst(pageNumberSelector)!!.text().substringBefore('/').toInt() <= i
}.mapTo(pageList) { element ->
Page(i++, imageUrl = element.attr("src"))
Page(i++, imageUrl = element.attr("data-src"))
}
url = document.selectFirst(Evaluator.Id("next-chapter"))
?.takeIf {