forked from recloudstream/cloudstream
Added .otf files to the manual subtitle whitelist
This commit is contained in:
parent
fc3abe415b
commit
601f4c5a77
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ class SubtitlesFragment : Fragment() {
|
||||||
it.mkdir()
|
it.mkdir()
|
||||||
}
|
}
|
||||||
return fontDir.list()?.mapNotNull {
|
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)
|
File(fontDir.absolutePath + "/" + it)
|
||||||
} else null
|
} else null
|
||||||
} ?: listOf()
|
} ?: listOf()
|
||||||
|
|
Loading…
Reference in a new issue