[fix] Fix group redundant videos and jump logic

This commit is contained in:
acite
2025-09-27 15:07:55 +08:00
parent 4e346a83ee
commit 8184ab211c
4 changed files with 31 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ private fun VideoDownloadCard(
jsonQuery.first { it.id == model.vid && it.klass == model.klass }
)
val playList = mutableListOf("${model.klass}/${model.vid}")
val playList = mutableListOf<String>()
val fv = viewModel.videoLibrary.classesMap.map { it.value }.flatten()
val video = fv.firstOrNull { it.klass == model.klass && it.id == model.vid }
@@ -161,7 +161,7 @@ private fun VideoDownloadCard(
}
}
val route = "video_player_route/${playList.joinToString(",").toHex()}"
val route = "video_player_route/${(playList.joinToString(",") + "|${model.vid}").toHex()}"
withContext(Dispatchers.Main) {
navigator.navigate(route)
}