fix(downloads): UI Issues with downloaded episodes

This commit is contained in:
Quickdesh 2023-12-06 05:20:04 -05:00 committed by jmir1
parent e5ecfa31f4
commit 575a364688
No known key found for this signature in database
GPG key ID: 7B3B624787A072BD
2 changed files with 5 additions and 3 deletions

View file

@ -361,6 +361,8 @@ class AnimeDownloadCache(
when {
// Ignore incomplete downloads
it.name?.endsWith(AnimeDownloader.TMP_DIR_SUFFIX) == true -> null
// Folder of videos
it.isDirectory -> it.name
// MP4 files
it.isFile && it.extension == "mp4" -> it.nameWithoutExtension
// MKV files

View file

@ -34,7 +34,7 @@ import eu.kanade.tachiyomi.animesource.model.Track
import eu.kanade.tachiyomi.ui.player.PlayerViewModel
import eu.kanade.tachiyomi.ui.player.settings.sheetDialogPadding
import `is`.xyz.mpv.MPVLib
import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.toImmutableList
import tachiyomi.core.i18n.stringResource
import tachiyomi.i18n.MR
import tachiyomi.presentation.core.components.material.padding
@ -52,7 +52,7 @@ fun StreamsCatalogSheet(
onSettingsClicked: () -> Unit,
onDismissRequest: () -> Unit,
) {
val tabTitles = persistentListOf(
val tabTitles = mutableListOf(
stringResource(MR.strings.subtitle_dialog_header),
stringResource(MR.strings.audio_dialog_header),
)
@ -62,7 +62,7 @@ fun StreamsCatalogSheet(
TabbedDialog(
onDismissRequest = onDismissRequest,
tabTitles = tabTitles,
tabTitles = tabTitles.toImmutableList(),
onOverflowMenuClicked = onSettingsClicked,
overflowIcon = Icons.Outlined.Settings,
hideSystemBars = true,