fixed selecting lang 1 instead of lang

This commit is contained in:
LagradOst 2022-05-26 20:08:54 +02:00
parent 1f56d0c12e
commit 1d7a74324b

View file

@ -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
}