mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Include archive chapters only if flag is set
This commit is contained in:
parent
88a28e843f
commit
d3696c783c
1 changed files with 5 additions and 1 deletions
|
|
@ -529,7 +529,11 @@ async fn get_format(
|
||||||
.flat_map(|(_, _, _, subtitles)| subtitles.clone())
|
.flat_map(|(_, _, _, subtitles)| subtitles.clone())
|
||||||
.collect(),
|
.collect(),
|
||||||
metadata: DownloadFormatMetadata {
|
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 => {
|
MergeBehavior::Auto => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue