add a refresh action

This commit is contained in:
2026-09-26 10:05:48 +08:00
parent 7fae2bb8c9
commit 55fad2c0cd
9 changed files with 267 additions and 20 deletions

View File

@@ -66,6 +66,19 @@ struct TrainingVideoSummary: Identifiable, Decodable {
}
return URL(string: absolute)
}
func copy(durationMs: Int64? = self.durationMs, sentenceCount: Int = self.sentenceCount) -> Self {
TrainingVideoSummary(
videoHash: videoHash,
title: title,
streamUrl: streamUrl,
durationMs: durationMs,
sizeBytes: sizeBytes,
language: language,
sentenceCount: sentenceCount,
status: status
)
}
}
struct TrainingMediaItem: Identifiable, Equatable {