From 0257fdea0d4128fe5c71c57c3196b93f4c133698 Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 9 Apr 2024 23:00:01 +0200 Subject: [PATCH] Remove chapters if sync doesn't work --- crunchy-cli-core/src/utils/download.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crunchy-cli-core/src/utils/download.rs b/crunchy-cli-core/src/utils/download.rs index 85fe3dc..9c409d2 100644 --- a/crunchy-cli-core/src/utils/download.rs +++ b/crunchy-cli-core/src/utils/download.rs @@ -392,7 +392,13 @@ impl Downloader { (*o as f64 / self.formats[0].video.0.fps().unwrap() * 1000.0) as i64, ) }) - } else if !offset_pre_checked { + } else { + for format in &mut self.formats { + format.metadata.skip_events = None + } + } + + if !offset_pre_checked { warn!("Couldn't find reliable sync positions") } }