refactor(transcript): drop Tonemark rewrite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -96,15 +96,13 @@ async function runJob(
|
||||
|
||||
if (captionSegments) {
|
||||
// Caption fast path — skip whisper
|
||||
const { deduplicateSegments } = await import('./postprocess.js');
|
||||
const { writeOutputs } = await import('./formatter.js');
|
||||
const segments = deduplicateSegments(captionSegments);
|
||||
const paths = await writeOutputs(segments, title, jobId);
|
||||
const paths = await writeOutputs(captionSegments, title, jobId);
|
||||
updateJob({
|
||||
id: jobId,
|
||||
status: 'done',
|
||||
progress: 100,
|
||||
segmentsJson: JSON.stringify(segments),
|
||||
segmentsJson: JSON.stringify(captionSegments),
|
||||
outputDir: paths.srt.replace(/\/[^/]+$/, '')
|
||||
});
|
||||
emitProgress(jobId, { type: 'done' });
|
||||
|
||||
Reference in New Issue
Block a user