Mango: Fix Page Fetch (#7227)

* Update Mango.kt

Added chapter numbers based on index order (same way they appear on the web client)

* Update build.gradle

* Update Mango.kt

Adds chapter number to the beginning of the chapter name

* Update Mango.kt

The last page of the chapter no longer repeats at the beginning

* Update build.gradle
This commit is contained in:
henry726 2021-05-25 18:12:08 -04:00 committed by GitHub
parent 620a1ea6f9
commit 6aac2a0539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mango'
pkgNameSuffix = 'all.mango'
extClass = '.Mango'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -161,7 +161,7 @@ class Mango : ConfigurableSource, HttpSource() {
val numPages = splitUrl.removeAt(splitUrl.size - 2).toInt()
val baseUrlChapter = splitUrl.joinToString("/")
val pages = mutableListOf<Page>()
for (i in 0..numPages) {
for (i in 1..numPages) {
pages.add(
Page(
index = i,