Skip to content

Commit

Permalink
Don't forget to store the file, and also fail the transcription if th…
Browse files Browse the repository at this point in the history
…ere is no output
  • Loading branch information
yoe committed Jan 31, 2025
1 parent 800d72e commit 7ffee2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/sreview-transcribe
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ run_transcribe($input_file->filename, $workdir);
my $vtt_file = "$workdir/$expected_file";
if (-f $vtt_file) {
move($vtt_file, $output_file->filename);
} else {
die "could not find $vtt_file";
}

$output_file->store_file;

$dbh->prepare("UPDATE talks SET progress='done' WHERE id=? AND state='transcribing'")->execute($talkid);

=back
Expand Down

0 comments on commit 7ffee2f

Please sign in to comment.