Naver Comic: fix page list for mobile user agent (#1272)

This commit is contained in:
everfio 2024-02-16 04:37:00 +08:00 committed by Draff
parent 03b9df50ff
commit 746dcba08b
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Naver Comic'
extClass = '.NaverComicFactory'
extVersionCode = 4
extVersionCode = 5
}
apply from: "$rootDir/common.gradle"

View File

@ -130,6 +130,13 @@ abstract class NaverComicBase(protected val mType: String) : ParsedHttpSource()
.map {
it.attr("src")
}
.ifEmpty {
// for mobile user agent
document.select(".toon_view_lst img")
.map {
it.attr("data-src")
}
}
.forEach {
pages.add(Page(pages.size, "", it))
}