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 { when {
// Ignore incomplete downloads // Ignore incomplete downloads
it.name?.endsWith(AnimeDownloader.TMP_DIR_SUFFIX) == true -> null it.name?.endsWith(AnimeDownloader.TMP_DIR_SUFFIX) == true -> null
// Folder of videos
it.isDirectory -> it.name
// MP4 files // MP4 files
it.isFile && it.extension == "mp4" -> it.nameWithoutExtension it.isFile && it.extension == "mp4" -> it.nameWithoutExtension
// MKV files // 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.PlayerViewModel
import eu.kanade.tachiyomi.ui.player.settings.sheetDialogPadding import eu.kanade.tachiyomi.ui.player.settings.sheetDialogPadding
import `is`.xyz.mpv.MPVLib import `is`.xyz.mpv.MPVLib
import kotlinx.collections.immutable.persistentListOf import kotlinx.collections.immutable.toImmutableList
import tachiyomi.core.i18n.stringResource import tachiyomi.core.i18n.stringResource
import tachiyomi.i18n.MR import tachiyomi.i18n.MR
import tachiyomi.presentation.core.components.material.padding import tachiyomi.presentation.core.components.material.padding
@ -52,7 +52,7 @@ fun StreamsCatalogSheet(
onSettingsClicked: () -> Unit, onSettingsClicked: () -> Unit,
onDismissRequest: () -> Unit, onDismissRequest: () -> Unit,
) { ) {
val tabTitles = persistentListOf( val tabTitles = mutableListOf(
stringResource(MR.strings.subtitle_dialog_header), stringResource(MR.strings.subtitle_dialog_header),
stringResource(MR.strings.audio_dialog_header), stringResource(MR.strings.audio_dialog_header),
) )
@ -62,7 +62,7 @@ fun StreamsCatalogSheet(
TabbedDialog( TabbedDialog(
onDismissRequest = onDismissRequest, onDismissRequest = onDismissRequest,
tabTitles = tabTitles, tabTitles = tabTitles.toImmutableList(),
onOverflowMenuClicked = onSettingsClicked, onOverflowMenuClicked = onSettingsClicked,
overflowIcon = Icons.Outlined.Settings, overflowIcon = Icons.Outlined.Settings,
hideSystemBars = true, hideSystemBars = true,