fixed sora sub

This commit is contained in:
hexated 2022-10-19 13:27:53 +07:00
parent 1d2c85998b
commit d5a59559f5
2 changed files with 10 additions and 10 deletions

View file

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

View file

@ -223,6 +223,15 @@ open class SoraStream : TmdbProvider() {
headers = mapOf("User-Agent" to getRandomUserAgent())
).parsedSafe<LoadLinks>()
json?.subtitles?.map { sub ->
subtitleCallback.invoke(
SubtitleFile(
sub.lang.toString(),
sub.url ?: return@map null
)
)
}
argamap(
{
if (json?.sources.isNullOrEmpty()) {
@ -241,15 +250,6 @@ open class SoraStream : TmdbProvider() {
)
)
}
json?.subtitles?.map { sub ->
subtitleCallback.invoke(
SubtitleFile(
sub.lang.toString(),
sub.url ?: return@map null
)
)
}
}
},
{