Added .otf files to the manual subtitle whitelist

This commit is contained in:
Blatzar 2022-10-06 20:04:43 +02:00
parent fc3abe415b
commit 601f4c5a77

View file

@ -135,7 +135,8 @@ class SubtitlesFragment : Fragment() {
it.mkdir()
}
return fontDir.list()?.mapNotNull {
if (it.endsWith(".ttf")) {
// No idea which formats are supported, but these should be.
if (it.endsWith(".ttf") || it.endsWith(".otf")) {
File(fontDir.absolutePath + "/" + it)
} else null
} ?: listOf()