[RU]WebOfComics more works chapters (#11926)
This commit is contained in:
parent
5b1a81ec44
commit
095c33be4e
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Web of Comics'
|
||||
pkgNameSuffix = 'ru.webofcomics'
|
||||
extClass = '.WebOfComics'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -340,16 +340,24 @@ class WebOfComics : ParsedHttpSource() {
|
|||
.substringBefore("\">")
|
||||
.trim()
|
||||
|
||||
var subPage = ""
|
||||
|
||||
val countSubPage = counterPageStr.split("document.write").size
|
||||
return (startPageStr.toInt() until endPageStr.toInt()).mapIndexed { index, page ->
|
||||
if (startPageStr == "0") {
|
||||
subPage = when {
|
||||
val subPage = when (countSubPage) {
|
||||
3 -> {
|
||||
when {
|
||||
page < 10 -> "0"
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
4 -> {
|
||||
when {
|
||||
page < 10 -> "00"
|
||||
page < 100 -> "0"
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
else -> ""
|
||||
}
|
||||
Page(
|
||||
index,
|
||||
"",
|
||||
|
|
Loading…
Reference in New Issue