JMana: Fix image parsing (#10390)

This commit is contained in:
Troy121 2022-01-09 17:25:05 +01:00 committed by GitHub
parent 6146e0fd83
commit d2a4c42a49
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 = 'JMana'
pkgNameSuffix = 'ko.jmana'
extClass = '.JMana'
extVersionCode = 12
extVersionCode = 13
}
apply from: "$rootDir/common.gradle"

View File

@ -136,7 +136,7 @@ class JMana : ConfigurableSource, ParsedHttpSource() {
override fun pageListParse(document: Document): List<Page> {
// <img class="comicdetail" style="width:auto;min-width:auto;margin:auto;display:block"
// data-src="https://img6.xyz.futbol/comics/jdrive01/202005/하야테처럼/하야테처럼! 1화/2d206674-93f5-4991-9420-6d63e2a00010.jpg">
val pages = document.select("div.pdf-wrap img.comicdetail")
val pages = document.select("div.pdf-wrap img.lazy")
.groupBy { img ->
val imageUrl = getImageUrl(img)
extractChapterName(imageUrl)