This commit is contained in:
KingLucius 2024-03-16 09:27:23 +00:00 committed by GitHub
commit f46a2e5ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.konan.properties.Properties
// use an integer for version numbers
version = 228
version = 229
android {
defaultConfig {

View File

@ -244,7 +244,8 @@ open class SoraStream : TmdbProvider() {
val recommendations =
res.recommendations?.results?.mapNotNull { media -> media.toSearchResponse() }
val trailer = res.videos?.results?.map { "https://www.youtube.com/watch?v=${it.key}" }
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) {
val lastSeason = res.last_episode_to_air?.season_number
@ -785,6 +786,7 @@ open class SoraStream : TmdbProvider() {
data class Trailers(
@JsonProperty("key") val key: String? = null,
@JsonProperty("type") val type: String? = null,
)
data class ResultsTrailer(