This commit is contained in:
LagradOst 2022-02-13 21:59:41 +01:00
parent f8ae9a09f5
commit 639ce66c2e

View file

@ -12,6 +12,7 @@ import androidx.appcompat.app.AlertDialog
import androidx.core.view.isGone import androidx.core.view.isGone
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.ViewModelProvider
import com.google.android.exoplayer2.util.MimeTypes
import com.google.android.material.button.MaterialButton import com.google.android.material.button.MaterialButton
import com.hippo.unifile.UniFile import com.hippo.unifile.UniFile
import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.*
@ -143,11 +144,15 @@ class GeneratorPlayer : FullScreenPlayer() {
private fun openSubPicker() { private fun openSubPicker() {
subsPathPicker.launch( subsPathPicker.launch(
arrayOf( arrayOf(
"text/vtt",
"application/x-subrip",
"text/plain", "text/plain",
"text/str", "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,
) )
) )
} }