mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 11:16:26 -07:00
Minor formatting and comment fixes
This commit is contained in:
parent
7d8544f9e6
commit
1626042e69
1 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
function buildAudioConfiguration(inputs, file, logger) {
|
||||||
var configuration = new Configurator(["-c:a copy"]);
|
var configuration = new Configurator(["-c:a copy"]);
|
||||||
|
|
@ -217,7 +217,7 @@ function buildAudioConfiguration(inputs, file, logger) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ("tags" in stream) {
|
if ("tags" in stream) {
|
||||||
// Remove unwated languages
|
// Remove unwanted languages
|
||||||
if ("language" in stream.tags) {
|
if ("language" in stream.tags) {
|
||||||
if (languages.indexOf(stream.tags.language.toLowerCase()) === -1) {
|
if (languages.indexOf(stream.tags.language.toLowerCase()) === -1) {
|
||||||
configuration.AddOutputSetting(`-map -0:a:${id}`);
|
configuration.AddOutputSetting(`-map -0:a:${id}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue