Fix printing on verbose scenechange info (#356)

Because of the scenes variable updating,
this would print the number of scenes after
extra splitting instead of the number of scenes
before splitting and then the number after splitting.
This commit is contained in:
Josh Holmer 2021-09-07 17:18:01 -04:00 committed by GitHub
parent bd2afa8369
commit 64ea3c25c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -458,15 +458,14 @@ impl Project {
self.calc_split_locations()
};
info!("SC: Found {} scenes", scenes.len() + 1);
if self.verbosity == Verbosity::Verbose {
eprintln!("Found {} scenes", scenes.len() + 1);
}
if let Some(split_len) = self.extra_splits_len {
info!("SC: Applying extra splits every {} frames", split_len);
scenes = extra_splits(scenes, self.frames, split_len);
info!("SC: Now at {} scenes", scenes.len() + 1);
}
if self.verbosity == Verbosity::Verbose {
// Also print this info to stderr in verbose mode
eprintln!("Found {} scenes", scenes.len() + 1);
if let Some(split_len) = self.extra_splits_len {
if self.verbosity == Verbosity::Verbose {
eprintln!("Applying extra splits every {} frames", split_len);
eprintln!("Now at {} scenes", scenes.len() + 1);
}