set playlist length seconds

This commit is contained in:
jb-alvarado 2023-09-08 10:23:39 +02:00
parent 83cff609b3
commit 94fa75a23d

View File

@ -194,6 +194,7 @@ pub fn read_playout_config(path: &str) -> Result<PlayoutConfig, Box<dyn Error>>
let mut config: PlayoutConfig = serde_yaml::from_reader(file)?; let mut config: PlayoutConfig = serde_yaml::from_reader(file)?;
config.playlist.start_sec = Some(time_to_sec(&config.playlist.day_start)); config.playlist.start_sec = Some(time_to_sec(&config.playlist.day_start));
config.playlist.length_sec = Some(time_to_sec(&config.playlist.length));
Ok(config) Ok(config)
} }