From 9ebaca5c6b61bc10bc9ec121bef3f84f63f55929 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 19 Jun 2024 08:13:50 +0200 Subject: [PATCH] update playlist after channel switch, fix #676 --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- ffplayout-api/src/utils/channels.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0ce08b0b..1a500d3c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1293,7 +1293,7 @@ checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "ffplayout" -version = "0.23.1" +version = "0.23.2" dependencies = [ "chrono", "clap", @@ -1315,7 +1315,7 @@ dependencies = [ [[package]] name = "ffplayout-api" -version = "0.23.1" +version = "0.23.2" dependencies = [ "actix-files", "actix-multipart", @@ -1359,7 +1359,7 @@ dependencies = [ [[package]] name = "ffplayout-lib" -version = "0.23.1" +version = "0.23.2" dependencies = [ "chrono", "crossbeam-channel", @@ -3639,7 +3639,7 @@ dependencies = [ [[package]] name = "tests" -version = "0.23.1" +version = "0.23.2" dependencies = [ "chrono", "crossbeam-channel", diff --git a/Cargo.toml b/Cargo.toml index 32e7864e..d1261fc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["ffplayout-api", "ffplayout-engine", "tests"] resolver = "2" [workspace.package] -version = "0.23.1" +version = "0.23.2" license = "GPL-3.0" repository = "https://github.com/ffplayout/ffplayout" authors = ["Jonathan Baecker "] diff --git a/ffplayout-api/src/utils/channels.rs b/ffplayout-api/src/utils/channels.rs index 9a684b87..21accede 100644 --- a/ffplayout-api/src/utils/channels.rs +++ b/ffplayout-api/src/utils/channels.rs @@ -48,7 +48,7 @@ pub async fn create_channel( .replace("stream.m3u8", &format!("stream{channel_num}.m3u8")) .replace("stream-%d.ts", &format!("stream{channel_num}-%d.ts")); - let toml_string = toml_edit::ser::to_string(&config)?; + let toml_string = toml_edit::ser::to_string_pretty(&config)?; fs::write(&target_channel.config_path, toml_string)?; let new_channel = handles::insert_channel(conn, target_channel).await?;