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