fixed sora detail & reduce loklok load in home

This commit is contained in:
hexated 2022-10-28 19:09:11 +07:00
parent bb3f40ab1a
commit 7dd469be03
4 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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>()