diff --git a/Cargo.toml b/Cargo.toml index 7299d4a7..38223c9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,8 @@ members = ["engine", "tests"] resolver = "2" [workspace.package] +description = "24/7 playout based on rust and ffmpeg" +readme = "README.md" version = "0.24.0-beta5" license = "GPL-3.0" repository = "https://github.com/ffplayout/ffplayout" diff --git a/engine/Cargo.toml b/engine/Cargo.toml index 59131286..1ea0ed4b 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ffplayout" -description = "24/7 playout based on rust and ffmpeg" -readme = "../README.md" +description.workspace = true +readme.workspace = true version.workspace = true license.workspace = true authors.workspace = true diff --git a/engine/src/utils/args_parse.rs b/engine/src/utils/args_parse.rs index 419f995a..0e74666a 100644 --- a/engine/src/utils/args_parse.rs +++ b/engine/src/utils/args_parse.rs @@ -35,7 +35,9 @@ Stream dynamic playlists or folder contents with the power of ffmpeg. The target can be an HLS playlist, rtmp/srt/udp server, desktop player or any other output supported by ffmpeg.\n ffplayout also provides a web frontend and API to control streaming, -manage config, files, text overlay, etc. "))] +manage config, files, text overlay, etc."), +next_line_help = false, +)] pub struct Args { #[clap( short, @@ -45,9 +47,6 @@ pub struct Args { )] pub init: bool, - #[clap(short, long, help_heading = Some("Initial Setup"), help = "Add a global admin")] - pub add: bool, - #[clap(short, long, help_heading = Some("Initial Setup"), help = "Create admin user")] pub username: Option, @@ -77,6 +76,9 @@ pub struct Args { #[clap(long, help_heading = Some("Initial Setup / Playlist"), help = "Path to playlist, or playlist root folder.")] pub playlists: Option, + #[clap(short, long, help_heading = Some("General"), help = "Add a global admin")] + pub add: bool, + #[clap(long, env, help_heading = Some("General"), help = "Path to database file")] pub db: Option, @@ -360,7 +362,6 @@ pub async fn run_args(pool: &Pool) -> Result<(), i32> { if global.shared { storage_path = storage_path.join("1"); - channel.preview_url = "http://127.0.0.1:8787/1/stream.m3u8".to_string(); channel.public = Path::new(&channel.public) .join("1") .to_string_lossy() diff --git a/frontend/components/ConfigChannel.vue b/frontend/components/ConfigChannel.vue index 37d462ec..996428f5 100644 --- a/frontend/components/ConfigChannel.vue +++ b/frontend/components/ConfigChannel.vue @@ -11,21 +11,37 @@
{{ t('config.name') }}
- + @@ -62,7 +93,9 @@ {{ t('config.save') }}