This commit is contained in:
Hexated 2023-05-02 12:12:59 +07:00 committed by GitHub
parent 1cd7425223
commit 51556f94b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,6 @@ class Loklok : MainAPI() {
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
val home = ArrayList<HomePageList>()
for (i in 0..6) {
// delay(500)
app.get("$apiUrl/homePage/getHome?page=$i", headers = headers)
.parsedSafe<Home>()?.data?.recommendItems.orEmpty().ifEmpty { throw ErrorLoadingException(geoblockError) }
.filterNot { it.homeSectionType == "BLOCK_GROUP" }