Skip to content

Commit

Permalink
fix(export): subtitles overwriting each other
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Sep 29, 2023
1 parent eae5e16 commit 17cd4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/transcode/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17cd4ac

Please sign in to comment.