mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-18 19:56:24 -07:00
Fix for missing language tag
This commit is contained in:
parent
cac1c91bc2
commit
7d6157da31
1 changed files with 20 additions and 16 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue