Naver Comic: fix page list for mobile user agent (#1272)
This commit is contained in:
parent
03b9df50ff
commit
746dcba08b
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Naver Comic'
|
||||
extClass = '.NaverComicFactory'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user