Skip to content

best way to save what you love

web/queue: add subtitles independently from remux type

wukko17ab8dd709d2
diff --git a/web/src/lib/task-manager/queue.ts b/web/src/lib/task-manager/queue.ts
index b47fbe60..db0b9531 100644
--- a/web/src/lib/task-manager/queue.ts
+++ b/web/src/lib/task-manager/queue.ts
@@ -68,17 +68,17 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => {
if (["merge", "remux"].includes(info.type)) {
ffargs.push("-c:a", "copy");
-
- if (info.output.subtitles) {
- ffargs.push(
- "-c:s",
- info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
- );
- }
} else if (info.type === "mute") {
ffargs.push("-an");
}
+ if (info.output.subtitles) {
+ ffargs.push(
+ "-c:s",
+ info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
+ );
+ }
+
ffargs.push(
...(info.output.metadata ? ffmpegMetadataArgs(info.output.metadata) : [])
);