diff --git a/crates/sylpheed-export/src/video.rs b/crates/sylpheed-export/src/video.rs index 44ca9e95..17eeeac3 100644 --- a/crates/sylpheed-export/src/video.rs +++ b/crates/sylpheed-export/src/video.rs @@ -157,10 +157,35 @@ pub fn transcode(disc: &Path, out: &Path, m: &Movie) -> Result String { + s.lines() + .filter(|l| !l.starts_with('#')) + .collect::>() + .join("\n") + }; let fresh = ogv.exists() - && std::fs::read_to_string(&stamp).map(|s| s == want).unwrap_or(false); + && std::fs::read_to_string(&stamp) + .map(|s| cache_key(&s) == cache_key(&want)) + .unwrap_or(false); if !fresh { // Encode to a temp name and rename on success. A reader that catches // this mid-write sees no file at all rather than a valid-looking one @@ -181,6 +206,17 @@ pub fn transcode(disc: &Path, out: &Path, m: &Movie) -> Result