Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stratumadev committed Jan 7, 2025
2 parents 57b3daa + 104b3a4 commit d0e1850
Show file tree
Hide file tree
Showing 3 changed files with 4,142 additions and 5,137 deletions.
4 changes: 2 additions & 2 deletions crunchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2055,8 +2055,8 @@ export default class Crunchy implements ServiceClass {
options.skipsubs = true;
}

if(!options.skipsubs && options.dlsubs.indexOf('none') == -1){
if(pbData.meta.subtitles && Object.values(pbData.meta.subtitles).length > 0){
if (!options.skipsubs && options.dlsubs.indexOf('none') == -1){
if ((pbData.meta.subtitles && Object.values(pbData.meta.subtitles).length) || (pbData.meta.closed_captions && Object.values(pbData.meta.closed_captions).length > 0)) {
const subsData = Object.values(pbData.meta.subtitles);
const capsData = Object.values(pbData.meta.closed_captions);
const subsDataMapped = subsData.map((s) => {
Expand Down
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
Loading

0 comments on commit d0e1850

Please sign in to comment.