Fix muxing
This commit is contained in:
7
dist/server/routes/jobs.js
vendored
7
dist/server/routes/jobs.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user