Skip to content

Commit

Permalink
Fix file path being passed to ffmpeg
Browse files Browse the repository at this point in the history
Fixes file paths being passed to ffmpeg when merging subtitles. #790
  • Loading branch information
AnimeDL committed Jan 4, 2025
1 parent ebd1f17 commit 4f7eb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/module.merger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Merger {
if (this.options.fonts) {
let fontIndex = 0;
for (const font of this.options.fonts) {
args.push(`-attach ${font.path} -metadata:s:t:${fontIndex} mimetype=${font.mime}`);
args.push(`-attach ${font.path} -metadata:s:t:${fontIndex} mimetype=${font.mime} -metadata:s:t:${fontIndex} filename=${font.name}`);
fontIndex++;
}
}
Expand Down

0 comments on commit 4f7eb97

Please sign in to comment.