fix for infinite scroll
This commit is contained in:
parent
9ab9d41f5b
commit
9075b1396a
1 changed files with 6 additions and 8 deletions
|
@ -36,8 +36,9 @@ class Animeiat : MainAPI() {
|
||||||
)
|
)
|
||||||
|
|
||||||
override val mainPage = mainPageOf(
|
override val mainPage = mainPageOf(
|
||||||
"$mainUrl/anime?page=" to "Anime",
|
"$mainUrl/home/sticky-episodes?page=" to "Episodes (H)",
|
||||||
"$mainUrl/home/sticky-episodes?page=" to "Episodes (H)"
|
"$mainUrl/anime?status=completed&page=" to "Completed",
|
||||||
|
"$mainUrl/anime?status=ongoing&page=" to "Ongoing",
|
||||||
)
|
)
|
||||||
|
|
||||||
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||||
|
@ -53,12 +54,9 @@ class Animeiat : MainAPI() {
|
||||||
this.posterUrl = "https://api.animeiat.co/storage/" + it.posterPath
|
this.posterUrl = "https://api.animeiat.co/storage/" + it.posterPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HomePageResponse(arrayListOf(
|
return if(request.name.contains("(H)")) HomePageResponse(
|
||||||
HomePageList(
|
arrayListOf(HomePageList(request.name.replace(" (H)",""), list, request.name.contains("(H)")))
|
||||||
request.name.replace(" (H)",""), list, request.name.contains("(H)")
|
) else newHomePageResponse(request.name, list)
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
|
|
Loading…
Reference in a new issue