mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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