feat(media_downloader): download the whole dash media

This commit is contained in:
rhunk
2023-09-01 20:54:04 +02:00
parent e4c511ca47
commit 3cde2aba9a
2 changed files with 9 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ class DownloadsSection : Section() {
}
//open
FilledIconButton(onClick = {
if (download.outputFile == null) return@FilledIconButton
val fileType = runCatching {
context.androidContext.contentResolver.openInputStream(Uri.parse(download.outputFile))?.use { input ->
FileType.fromInputStream(input)