forked from recloudstream/cloudstream
fixed selecting lang 1 instead of lang
This commit is contained in:
parent
1f56d0c12e
commit
1d7a74324b
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ class GeneratorPlayer : FullScreenPlayer() {
|
|||
subtitles.firstOrNull { sub ->
|
||||
val t = sub.name.replace(Regex("[^A-Za-z]"), " ").trim()
|
||||
t == lang || t.startsWith("$lang ")
|
||||
|| sub.name.trim() == langCode
|
||||
|| t == langCode
|
||||
}?.let { sub ->
|
||||
return sub
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue