mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-27 16:26:29 +03:00
fix(downloads): UI Issues with downloaded episodes
This commit is contained in:
parent
e5ecfa31f4
commit
575a364688
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue