From 601f4c5a77feb5224da443a3a7ca956a1174bf4f Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Thu, 6 Oct 2022 20:04:43 +0200 Subject: [PATCH] Added .otf files to the manual subtitle whitelist --- .../lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt index b1d82b76..b97468e7 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/subtitles/SubtitlesFragment.kt @@ -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()