Skip to content

Commit

Permalink
Fix regression in Funimation merging
Browse files Browse the repository at this point in the history
Fixes audio not being in the final video
  • Loading branch information
AnimeDL committed Jul 13, 2023
1 parent 95374bd commit a356e98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions modules/module.merger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,16 @@ class Merger {

for (const aud of this.options.onlyAudio) {
const trackName = aud.lang.name;
const trackNum = this.options.inverseTrackOrder ? '0' : '1';
args.push('--track-name', `${trackNum}:"${trackName}"`);
args.push(`--language ${trackNum}:${aud.lang.code}`);
args.push('--track-name', `0:"${trackName}"`);
args.push(`--language 0:${aud.lang.code}`);
args.push(
'--no-video',
`--audio-tracks ${trackNum}`
'--audio-tracks 0'
);
if (this.options.defaults.audio.code === aud.lang.code) {
args.push(`--default-track ${trackNum}`);
args.push('--default-track 0');
} else {
args.push(`--default-track ${trackNum}:0`);
args.push('--default-track 0:0');
}
args.push(`"${aud.path}"`);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "multi-downloader-nx",
"short_name": "aniDL",
"version": "4.2.0b2",
"version": "4.2.0b3",
"description": "Download videos from Funimation, Crunchyroll, or Hidive via cli",
"keywords": [
"download",
Expand Down

0 comments on commit a356e98

Please sign in to comment.