mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed sora detail & reduce loklok load in home
This commit is contained in:
parent
bb3f40ab1a
commit
7dd469be03
4 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 8
|
version = 9
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -47,8 +47,8 @@ class Loklok : MainAPI() {
|
||||||
|
|
||||||
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||||
val home = ArrayList<HomePageList>()
|
val home = ArrayList<HomePageList>()
|
||||||
for (i in 0..8) {
|
for (i in 0..6) {
|
||||||
delay(500)
|
// delay(500)
|
||||||
app.get("$apiUrl/homePage/getHome?page=$i", headers = headers)
|
app.get("$apiUrl/homePage/getHome?page=$i", headers = headers)
|
||||||
.parsedSafe<Home>()?.data?.recommendItems
|
.parsedSafe<Home>()?.data?.recommendItems
|
||||||
?.filterNot { it.homeSectionType == "BLOCK_GROUP" }
|
?.filterNot { it.homeSectionType == "BLOCK_GROUP" }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 13
|
version = 14
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -208,7 +208,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
val recommendations =
|
val recommendations =
|
||||||
responses.recommandations?.mapNotNull { media -> media.toSearchResponse() }
|
responses.recommandations?.mapNotNull { media -> media.toSearchResponse() }
|
||||||
|
|
||||||
val trailer = responses.result.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" }?.random()
|
val trailer = responses.result.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" }?.randomOrNull()
|
||||||
|
|
||||||
return if (type == TvType.TvSeries) {
|
return if (type == TvType.TvSeries) {
|
||||||
val episodes = mutableListOf<Episode>()
|
val episodes = mutableListOf<Episode>()
|
||||||
|
|
Loading…
Reference in a new issue