From 94fa75a23dac30a38eefc709742a3c2e72ec9f63 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 8 Sep 2023 10:23:39 +0200 Subject: [PATCH] set playlist length seconds --- ffplayout-api/src/utils/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ffplayout-api/src/utils/mod.rs b/ffplayout-api/src/utils/mod.rs index 7569f47f..3c456ee2 100644 --- a/ffplayout-api/src/utils/mod.rs +++ b/ffplayout-api/src/utils/mod.rs @@ -194,6 +194,7 @@ pub fn read_playout_config(path: &str) -> Result> let mut config: PlayoutConfig = serde_yaml::from_reader(file)?; 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) }