fix(de/cineclix): Fix Popular Page (#2626)
This commit is contained in:
parent
98e592dea9
commit
dab26e7fe6
@ -6,7 +6,7 @@ ext {
|
||||
extName = 'CineClix'
|
||||
pkgNameSuffix = 'de.cineclix'
|
||||
extClass = '.CineClix'
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
libVersion = '13'
|
||||
}
|
||||
|
||||
|
@ -68,8 +68,8 @@ class CineClix : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
val jsonData = jsonLine ?: return AnimesPage(emptyList(), false)
|
||||
val jObject = json.decodeFromString<JsonObject>(jsonData)
|
||||
val jO = jObject.jsonObject["pagination"]!!.jsonObject
|
||||
val nextPage = jO.jsonObject["next_page_url"]!!.jsonPrimitive.content
|
||||
.substringAfter("page=").toInt()
|
||||
val nextPage = jO.jsonObject["next_page"]!!.jsonPrimitive.int
|
||||
// .substringAfter("page=").toInt()
|
||||
val page = jO.jsonObject["current_page"]!!.jsonPrimitive.int
|
||||
val hasNextPage = page < nextPage
|
||||
val array = jO["data"]!!.jsonArray
|
||||
|
Loading…
x
Reference in New Issue
Block a user