mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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()
|
||||
}
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue