From efd4d72a9ffe3ec047d750676d3fc5a3711d9bbe Mon Sep 17 00:00:00 2001 From: hexated Date: Fri, 28 Oct 2022 10:58:55 +0700 Subject: [PATCH] added random trailer into Sora --- SoraStream/src/main/kotlin/com/hexated/SoraStream.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt index fef290e4..1267cb2a 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt @@ -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}" }?.first() + val trailer = responses.result.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" }?.random() return if (type == TvType.TvSeries) { val episodes = mutableListOf()