parent
8670d2c9da
commit
4a20984161
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'LeerCapitulo / OlympusScan.top'
|
extName = 'LeerCapitulo / OlympusScan.top'
|
||||||
pkgNameSuffix = 'es.leercapitulo'
|
pkgNameSuffix = 'es.leercapitulo'
|
||||||
extClass = '.LeerCapitulo'
|
extClass = '.LeerCapitulo'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
|
@ -147,8 +147,13 @@ class LeerCapitulo : ParsedHttpSource(), ConfigurableSource {
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
|
val order = document.selectFirst("meta[property=ad:check]")?.attr("content")
|
||||||
|
?.replace("[^\\d]+".toRegex(), "-")
|
||||||
|
?.split("-")
|
||||||
val urls = document.selectFirst("#arraydata")!!.text().split(',')
|
val urls = document.selectFirst("#arraydata")!!.text().split(',')
|
||||||
return urls.mapIndexed { i, image_url ->
|
val sortedUrl = order?.map { urls[it.toInt()] } ?: urls
|
||||||
|
|
||||||
|
return sortedUrl.mapIndexed { i, image_url ->
|
||||||
Page(i, imageUrl = image_url.replace("https://cdn.statically.io/img/", "https://")) // just redirects
|
Page(i, imageUrl = image_url.replace("https://cdn.statically.io/img/", "https://")) // just redirects
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue