mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add 0.5 second pause after skipped sections in redaction script
This commit is contained in:
parent
efcda12dda
commit
1bed4e8972
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue