diff --git a/Cargo.lock b/Cargo.lock index c551e433..90adb28c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -961,7 +961,7 @@ dependencies = [ [[package]] name = "ffplayout-api" -version = "0.5.3" +version = "0.5.4" dependencies = [ "actix-files", "actix-multipart", diff --git a/ffplayout-api/Cargo.toml b/ffplayout-api/Cargo.toml index d796d66b..a3cd863c 100644 --- a/ffplayout-api/Cargo.toml +++ b/ffplayout-api/Cargo.toml @@ -4,7 +4,7 @@ description = "Rest API for ffplayout" license = "GPL-3.0" authors = ["Jonathan Baecker jonbae77@gmail.com"] readme = "README.md" -version = "0.5.3" +version = "0.5.4" edition = "2021" [dependencies] diff --git a/ffplayout-api/src/utils/playlist.rs b/ffplayout-api/src/utils/playlist.rs index bc800eab..33c38d7b 100644 --- a/ffplayout-api/src/utils/playlist.rs +++ b/ffplayout-api/src/utils/playlist.rs @@ -53,12 +53,14 @@ pub async fn write_playlist(id: i64, json_data: JsonPlaylist) -> Result Result return Ok(format!("Write playlist from {date} success!")), + Ok(_) => { + let mut msg = format!("Write playlist from {date} success!"); + + if file_exists { + msg = format!("Update playlist from {date} success!"); + } + + return Ok(msg); + } Err(e) => { error!("{e}"); } diff --git a/ffplayout-frontend b/ffplayout-frontend index d0a2fa69..ec78765c 160000 --- a/ffplayout-frontend +++ b/ffplayout-frontend @@ -1 +1 @@ -Subproject commit d0a2fa6921172d667ce718e9362d4076fc16c23c +Subproject commit ec78765c0bfbe583ff9b5cbdcd6d011ecb89ac62