commit
b72f238661
@ -230,8 +230,8 @@ function buildAudioConfiguration(_inputs, file, logger) {
|
|||||||
function buildSubtitleConfiguration(inputs, file, logger) {
|
function buildSubtitleConfiguration(inputs, file, logger) {
|
||||||
var configuration = new Configurator(["-c:s copy"]);
|
var configuration = new Configurator(["-c:s copy"]);
|
||||||
|
|
||||||
|
if (!inputs.wanted_subtitle_languages) return configuration;
|
||||||
var languages = inputs.wanted_subtitle_languages.split(",");
|
var languages = inputs.wanted_subtitle_languages.split(",");
|
||||||
if (languages.length === 0) return configuration;
|
|
||||||
|
|
||||||
loopOverStreamsOfType(file, "subtitle", function (stream, id) {
|
loopOverStreamsOfType(file, "subtitle", function (stream, id) {
|
||||||
if (stream.codec_name === "eia_608") {
|
if (stream.codec_name === "eia_608") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user