mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Sort the oldest first
This commit is contained in:
parent
d454ee4238
commit
f9e025c8e0
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ open class SoraStream : TmdbProvider() {
|
|||
val recommendations =
|
||||
res.recommendations?.results?.mapNotNull { media -> media.toSearchResponse() }
|
||||
|
||||
val trailer = res.videos?.results?.filter { it.type == "Trailer" }?.map { "https://www.youtube.com/watch?v=${it.key}" }.orEmpty()
|
||||
val trailer = res.videos?.results?.filter { it.type == "Trailer" }?.map { "https://www.youtube.com/watch?v=${it.key}" }?.reversed().orEmpty()
|
||||
.ifEmpty { res.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" } }
|
||||
|
||||
return if (type == TvType.TvSeries) {
|
||||
|
|
Loading…
Reference in a new issue