DEVELOPMENT ENVIRONMENT

~liljamo/entamin

9b1cc2229c33bbb23d849302db4b35d7c9bd7120 — Jonni Liljamo 6 days ago 578dfc1
fix: allow keeping no subtitles
1 files changed, 3 insertions(+), 1 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +3 -1
@@ 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