From 17cd4ac170f5ea71728cac3114a933910aaceba6 Mon Sep 17 00:00:00 2001 From: Fredrik Vedvik Date: Fri, 29 Sep 2023 14:55:52 +0200 Subject: [PATCH] fix(export): subtitles overwriting each other --- services/transcode/merge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/transcode/merge.go b/services/transcode/merge.go index d9dd3bdd..9930084b 100644 --- a/services/transcode/merge.go +++ b/services/transcode/merge.go @@ -192,7 +192,7 @@ func MergeSubtitles(input common.MergeInput, progressCallback ffmpeg.ProgressCal content += fmt.Sprintf("file '%s'\n", f) } - subtitlesFile := filepath.Join(input.WorkDir, "subtitles.txt") + subtitlesFile := filepath.Join(input.WorkDir, input.Title+"-subtitles.txt") err := os.WriteFile(subtitlesFile, []byte(content), os.ModePerm) if err != nil {