feat: Add 0.5 second pause after skipped sections in redaction script

This commit is contained in:
Paul Gauthier (aider) 2025-03-11 17:05:54 -07:00
parent efcda12dda
commit 1bed4e8972

View file

@ -68,6 +68,9 @@ def process_file(input_path, output_path):
# Calculate how much time to subtract from future timestamps
time_offset += (current_timestamp - skip_start_time)
# Add a 0.5 second pause after each skip section
last_timestamp += 0.5
# Write this record with adjusted timestamp
adjusted_timestamp = max(current_timestamp - time_offset, last_timestamp)
last_timestamp = adjusted_timestamp