Fix muxing

This commit is contained in:
2026-05-15 04:10:06 +02:00
parent 05faf1ce3b
commit 6deb883472
26 changed files with 662 additions and 169 deletions

View File

@@ -145,10 +145,13 @@ function createJobsRouter(jobManager) {
filePath = format === 'vtt' ? job.output_subtitles_vtt : job.output_subtitles_srt;
filename = `${path_1.default.basename(job.video_filename, path_1.default.extname(job.video_filename))}_description.${format}`;
break;
case 'muxed':
case 'muxed': {
const opts = JSON.parse(job.output_options || '{}');
const suffix = opts.muxMode === 'mixed' ? '_described_mixed' : '_described';
filePath = job.output_muxed;
filename = `${path_1.default.basename(job.video_filename, path_1.default.extname(job.video_filename))}_described.mkv`;
filename = `${path_1.default.basename(job.video_filename, path_1.default.extname(job.video_filename))}${suffix}.mkv`;
break;
}
default:
res.status(400).json({ error: 'Invalid download type' });
return;