mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 18:25:54 -07:00
Merge pull request #575 from HaveAGitGat/ensure_audio_fix
Don't remove new stream when original stream removed
This commit is contained in:
commit
cfc630d55e
2 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ var attemptMakeStream = function (_a) {
|
||||||
}
|
}
|
||||||
args.jobLog("Adding ".concat(langTag, " stream in ").concat(audioEncoder, ", ").concat(targetChannels, " channels \n"));
|
args.jobLog("Adding ".concat(langTag, " stream in ").concat(audioEncoder, ", ").concat(targetChannels, " channels \n"));
|
||||||
var streamCopy = JSON.parse(JSON.stringify(streamWithHighestChannel));
|
var streamCopy = JSON.parse(JSON.stringify(streamWithHighestChannel));
|
||||||
|
streamCopy.removed = false;
|
||||||
streamCopy.index = streams.length;
|
streamCopy.index = streams.length;
|
||||||
streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder);
|
streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder);
|
||||||
streamCopy.outputArgs.push('-ac', "".concat(targetChannels));
|
streamCopy.outputArgs.push('-ac', "".concat(targetChannels));
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,7 @@ const attemptMakeStream = ({
|
||||||
args.jobLog(`Adding ${langTag} stream in ${audioEncoder}, ${targetChannels} channels \n`);
|
args.jobLog(`Adding ${langTag} stream in ${audioEncoder}, ${targetChannels} channels \n`);
|
||||||
|
|
||||||
const streamCopy: IffmpegCommandStream = JSON.parse(JSON.stringify(streamWithHighestChannel));
|
const streamCopy: IffmpegCommandStream = JSON.parse(JSON.stringify(streamWithHighestChannel));
|
||||||
|
streamCopy.removed = false;
|
||||||
streamCopy.index = streams.length;
|
streamCopy.index = streams.length;
|
||||||
streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder);
|
streamCopy.outputArgs.push('-c:{outputIndex}', audioEncoder);
|
||||||
streamCopy.outputArgs.push('-ac', `${targetChannels}`);
|
streamCopy.outputArgs.push('-ac', `${targetChannels}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue