From 2a26a6030e25127a3967dd5bccba1fb05d485ab1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 17 Dec 2023 20:58:10 +0100 Subject: chapters --- common/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/src/lib.rs') diff --git a/common/src/lib.rs b/common/src/lib.rs index ea19205..aedcb07 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -110,6 +110,15 @@ pub struct LocalTrack { pub struct MediaInfo { pub duration: f64, // in seconds pub tracks: Vec, + #[serde(default)] + pub chapters: Vec, +} + +#[derive(Debug, Clone, Deserialize, Serialize, Default)] +pub struct Chapter { + pub time_start: Option, + pub time_end: Option, + pub labels: Vec<(String, String)>, } #[derive(Debug, Clone, Deserialize, Serialize)] -- cgit v1.2.3-70-g09d2