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:
parent
620a1ea6f9
commit
6aac2a0539
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'Mango'
|
extName = 'Mango'
|
||||||
pkgNameSuffix = 'all.mango'
|
pkgNameSuffix = 'all.mango'
|
||||||
extClass = '.Mango'
|
extClass = '.Mango'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ class Mango : ConfigurableSource, HttpSource() {
|
|||||||
val numPages = splitUrl.removeAt(splitUrl.size - 2).toInt()
|
val numPages = splitUrl.removeAt(splitUrl.size - 2).toInt()
|
||||||
val baseUrlChapter = splitUrl.joinToString("/")
|
val baseUrlChapter = splitUrl.joinToString("/")
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
for (i in 0..numPages) {
|
for (i in 1..numPages) {
|
||||||
pages.add(
|
pages.add(
|
||||||
Page(
|
Page(
|
||||||
index = i,
|
index = i,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user