fix 'u' in join-partial-lines

This commit is contained in:
2024-03-29 16:32:40 -06:00
parent 24312f0ca7
commit 176c2f7be9

View File

@@ -60,7 +60,9 @@ def process_chunk(audio_guess, timestamp):
while True:
choice = getch()
if choice == 'u':
cutter.take_audio(audio_guess, timestamp, timestamp['start'], timestamp['end'])
length = timestamp['end'] - timestamp['start']
adjusted = {'start': cutter.current_sec, 'end': cutter.current_sec + length}
cutter.take_audio(audio_guess, adjusted, timestamp['start'], timestamp['end'])
break
elif choice == 'd':
break