From 9b1cc2229c33bbb23d849302db4b35d7c9bd7120 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 27 Nov 2024 18:44:23 +0200 Subject: [PATCH] fix: allow keeping no subtitles --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3c02293..bc3cd68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,7 +110,9 @@ fn phase_one(cli: &Cli, file: &DirEntry) -> (String, MkvInfo) { ); let mut args = vec!["-o".into(), out_file.clone()]; - if !subtitles_to_keep.is_empty() { + if subtitles_to_keep.is_empty() { + args.push("--no-subtitles".into()); + } else { args.push("--subtitle-tracks".into()); args.push( subtitles_to_keep -- 2.44.1