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