Merge pull request #112 from tmchow/patch-3

Minor formatting and comment fixes
make-only-subtitle-default
HaveAGitGat 5 years ago committed by GitHub
commit a683eab516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,7 +194,7 @@ function loopOverStreamsOfType(file, type, method) {
}
/**
* Converts all multi channel audio streams to AC3.
* Removes audio tracks that aren't in the allowed languages or labeled as Commentary tracks.
*/
function buildAudioConfiguration(inputs, file, logger) {
var configuration = new Configurator(["-c:a copy"]);
@ -217,7 +217,7 @@ function buildAudioConfiguration(inputs, file, logger) {
}
}
if ("tags" in stream) {
// Remove unwated languages
// Remove unwanted languages
if ("language" in stream.tags) {
if (languages.indexOf(stream.tags.language.toLowerCase()) === -1) {
configuration.AddOutputSetting(`-map -0:a:${id}`);

Loading…
Cancel
Save