fixed Loklok home

This commit is contained in:
hexated 2022-09-16 18:06:14 +07:00
parent 006cb16a89
commit 9eeef5d78a
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 3
version = 4
cloudstream {

View file

@ -41,7 +41,7 @@ class Loklok : MainAPI() {
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
val home = ArrayList<HomePageList>()
for (i in 0..10) {
for (i in 0..8) {
delay(500)
app.get("$apiUrl/homePage/getHome?page=$i", headers = headers)
.parsedSafe<Home>()?.data?.recommendItems