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
efd4d72a9f
commit
2fe7bcc833
4 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 8
|
||||
version = 9
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -47,8 +47,8 @@ class Loklok : MainAPI() {
|
|||
|
||||
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {
|
||||
val home = ArrayList<HomePageList>()
|
||||
for (i in 0..8) {
|
||||
delay(500)
|
||||
for (i in 0..6) {
|
||||
// delay(500)
|
||||
app.get("$apiUrl/homePage/getHome?page=$i", headers = headers)
|
||||
.parsedSafe<Home>()?.data?.recommendItems
|
||||
?.filterNot { it.homeSectionType == "BLOCK_GROUP" }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 13
|
||||
version = 14
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -208,7 +208,7 @@ open class SoraStream : TmdbProvider() {
|
|||
val recommendations =
|
||||
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) {
|
||||
val episodes = mutableListOf<Episode>()
|
||||
|
|
Loading…
Reference in a new issue