Add --special-output and --skip-specials flag

This commit is contained in:
bytedream 2023-11-04 15:24:14 +01:00
parent 5a3a304443
commit 787d8ab02c
5 changed files with 106 additions and 10 deletions

View file

@ -473,6 +473,10 @@ impl Format {
tab_info!("FPS: {:.2}", self.fps)
}
pub fn is_special(&self) -> bool {
self.sequence_number == 0.0 || self.sequence_number.fract() != 0.0
}
pub fn has_relative_fmt<S: AsRef<str>>(s: S) -> bool {
return s.as_ref().contains("{relative_episode_number}")
|| s.as_ref().contains("{relative_sequence_number}");