From 16d9ddaafad0f3216728450de562e72f736f4a2c Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Fri, 27 Mar 2026 23:28:17 +0100 Subject: [PATCH] tauri-app: fix video file name extraction --- tauri-app/src/components/GameReview.vue | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/tauri-app/src/components/GameReview.vue b/tauri-app/src/components/GameReview.vue index f7c1af0..de7805e 100644 --- a/tauri-app/src/components/GameReview.vue +++ b/tauri-app/src/components/GameReview.vue @@ -52,9 +52,6 @@ const exportMessage = ref(null); const showTeamStats = ref(false); const selectedPlayerPuuid = ref(null); -// Derived video filename from start_time -const videoFilename = props.game.video_file; - // Get video URL for playback using Tauri's convertFileSrc const videoUrl = computed(() => { if (videoPath.value) { @@ -324,20 +321,16 @@ async function loadVideoPath() { try { const recordingsDir = await invoke("get_recordings_dir"); - if (videoFilename.value) { - // Try to find the video file - const path = await invoke("find_video_file", { - recordingsDir, - filename: videoFilename.value, - }); - - if (path) { - videoPath.value = path; - } else { - videoError.value = `Video file not found: ${videoFilename.value}`; - } + // Try to find the video file + const path = await invoke("find_video_file", { + recordingsDir, + filename: props.game.video_file, + }); + + if (path) { + videoPath.value = path; } else { - videoError.value = "Could not determine video filename from timeline"; + videoError.value = `Video file not found: ${props.game.video_file}`; } } catch (error) { videoError.value = `Failed to load video: ${error}`;