Skip to content

Commit 254ad96

Browse files
committed
web/queue: add subtitle args when output has subtitles
not when there are 3 tunnels, that was dumb of me, my bad
1 parent 337edfc commit 254ad96

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

web/src/lib/task-manager/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => {
6969
if (["merge", "remux"].includes(info.type)) {
7070
ffargs.push("-c:a", "copy");
7171

72-
if (info.tunnel.length === 3) {
72+
if (info.output.subtitles) {
7373
ffargs.push(
7474
"-c:s",
7575
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"

web/src/lib/types/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export type CobaltLocalProcessingResponse = {
7373
type: string, // mimetype
7474
filename: string,
7575
metadata?: CobaltFileMetadata,
76+
subtitles?: boolean,
7677
},
7778

7879
audio?: {

0 commit comments

Comments
 (0)