Naver Comic: fix page list for mobile user agent (#1272)
This commit is contained in:
parent
03b9df50ff
commit
746dcba08b
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Naver Comic'
|
extName = 'Naver Comic'
|
||||||
extClass = '.NaverComicFactory'
|
extClass = '.NaverComicFactory'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -130,6 +130,13 @@ abstract class NaverComicBase(protected val mType: String) : ParsedHttpSource()
|
|||||||
.map {
|
.map {
|
||||||
it.attr("src")
|
it.attr("src")
|
||||||
}
|
}
|
||||||
|
.ifEmpty {
|
||||||
|
// for mobile user agent
|
||||||
|
document.select(".toon_view_lst img")
|
||||||
|
.map {
|
||||||
|
it.attr("data-src")
|
||||||
|
}
|
||||||
|
}
|
||||||
.forEach {
|
.forEach {
|
||||||
pages.add(Page(pages.size, "", it))
|
pages.add(Page(pages.size, "", it))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user