Fix for missing language tag

This commit is contained in:
Rick Meijer 2021-05-04 12:35:55 +02:00
parent cac1c91bc2
commit 7d6157da31
No known key found for this signature in database
GPG key ID: D39390C5D0A56666

View file

@ -114,6 +114,7 @@ const processStreams = (result, file, user_langs) => {
// eslint-disable-next-line no-continue
continue;
}
if (stream.tags.language) {
if (langs.includes(stream.tags.language)) {
tracks.keep.push(streamIndex);
} else {
@ -122,6 +123,9 @@ const processStreams = (result, file, user_langs) => {
tracks.remLangs += `${languages.getName(stream.tags.language, 'en')}, `;
}
streamIndex += 1;
} else {
response.infoLog += `☒No language tag found on audio track ${streamIndex}. Keeping it. \n`;
}
}
}
response.preset += ' -c copy -max_muxing_queue_size 9999';