Dmzj: fix page numbering (#273)
This commit is contained in:
parent
9c506ef915
commit
108bc9d4c8
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: Dmzj'
|
appName = 'Tachiyomi: Dmzj'
|
||||||
pkgNameSuffix = "zh.dmzj"
|
pkgNameSuffix = "zh.dmzj"
|
||||||
extClass = '.Dmzj'
|
extClass = '.Dmzj'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
extVersionSuffix = 2
|
extVersionSuffix = 3
|
||||||
libVersion = '1.0'
|
libVersion = '1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,7 @@ class Dmzj : HttpSource() {
|
||||||
val arr = obj.getJSONArray("page_url")
|
val arr = obj.getJSONArray("page_url")
|
||||||
val ret = ArrayList<Page>(arr.length())
|
val ret = ArrayList<Page>(arr.length())
|
||||||
for (i in 0 until arr.length()) {
|
for (i in 0 until arr.length()) {
|
||||||
ret.add(Page(i+1, "", arr.getString(i)))
|
ret.add(Page(i, "", arr.getString(i)))
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue