fix(de/cineclix): Fix Popular Page (#2626)

This commit is contained in:
LuftVerbot 2023-12-08 19:30:20 +01:00 committed by GitHub
parent 98e592dea9
commit dab26e7fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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'
} }

View File

@ -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