From 639ce66c2e71fa533086d70445011e688f7dc729 Mon Sep 17 00:00:00 2001 From: LagradOst <11805592+LagradOst@users.noreply.github.com> Date: Sun, 13 Feb 2022 21:59:41 +0100 Subject: [PATCH] fixed #657 --- .../cloudstream3/ui/player/GeneratorPlayer.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt index 6e6bb4eb..ccc49e01 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt @@ -12,6 +12,7 @@ import androidx.appcompat.app.AlertDialog import androidx.core.view.isGone import androidx.core.view.isVisible import androidx.lifecycle.ViewModelProvider +import com.google.android.exoplayer2.util.MimeTypes import com.google.android.material.button.MaterialButton import com.hippo.unifile.UniFile import com.lagradost.cloudstream3.* @@ -143,11 +144,15 @@ class GeneratorPlayer : FullScreenPlayer() { private fun openSubPicker() { subsPathPicker.launch( arrayOf( - "text/vtt", - "application/x-subrip", "text/plain", "text/str", - "application/octet-stream" + "application/octet-stream", + MimeTypes.TEXT_UNKNOWN, + MimeTypes.TEXT_VTT, + MimeTypes.TEXT_SSA, + MimeTypes.APPLICATION_TTML, + MimeTypes.APPLICATION_MP4VTT, + MimeTypes.APPLICATION_SUBRIP, ) ) }