add video file name in json metadata
Some checks failed
record-daemon / Build, check and test (push) Failing after 8s
Some checks failed
record-daemon / Build, check and test (push) Failing after 8s
This commit is contained in:
@@ -53,25 +53,7 @@ const showTeamStats = ref(false);
|
||||
const selectedPlayerPuuid = ref<string | null>(null);
|
||||
|
||||
// Derived video filename from start_time
|
||||
const videoFilename = computed(() => {
|
||||
// Parse start_time like "2026-03-27T16:42:55.800338300Z"
|
||||
const startTime = props.game.start_time;
|
||||
if (!startTime) return null;
|
||||
|
||||
try {
|
||||
const date = new Date(startTime);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
|
||||
return `${year}-${month}-${day}_${hours}-${minutes}-${seconds}_unknown.mp4`;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
const videoFilename = props.game.video_file;
|
||||
|
||||
// Get video URL for playback using Tauri's convertFileSrc
|
||||
const videoUrl = computed(() => {
|
||||
|
||||
@@ -146,6 +146,8 @@ export interface Timeline {
|
||||
raw_live_client_data: Record<string, unknown> | null;
|
||||
/** Raw end-of-game stats from `/lol-end-of-game/v1/eog-stats-block`. */
|
||||
raw_end_game_stats: Record<string, unknown> | null;
|
||||
/** Video file name (just the filename, not the full path). */
|
||||
video_file: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user