From d3696c783cef5e8f368978e4e014d07b8a83b913 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 10 Mar 2024 21:57:20 +0100 Subject: [PATCH] Include archive chapters only if flag is set --- crunchy-cli-core/src/archive/command.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crunchy-cli-core/src/archive/command.rs b/crunchy-cli-core/src/archive/command.rs index 8258b36..f7bea0e 100644 --- a/crunchy-cli-core/src/archive/command.rs +++ b/crunchy-cli-core/src/archive/command.rs @@ -529,7 +529,11 @@ async fn get_format( .flat_map(|(_, _, _, subtitles)| subtitles.clone()) .collect(), metadata: DownloadFormatMetadata { - skip_events: format_pairs.first().unwrap().0.skip_events().await?, + skip_events: if archive.include_chapters { + format_pairs.first().unwrap().0.skip_events().await? + } else { + None + }, }, }), MergeBehavior::Auto => {