mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 03:06:27 -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
|
// eslint-disable-next-line no-continue
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (stream.tags.language) {
|
||||||
if (langs.includes(stream.tags.language)) {
|
if (langs.includes(stream.tags.language)) {
|
||||||
tracks.keep.push(streamIndex);
|
tracks.keep.push(streamIndex);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -122,6 +123,9 @@ const processStreams = (result, file, user_langs) => {
|
||||||
tracks.remLangs += `${languages.getName(stream.tags.language, 'en')}, `;
|
tracks.remLangs += `${languages.getName(stream.tags.language, 'en')}, `;
|
||||||
}
|
}
|
||||||
streamIndex += 1;
|
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';
|
response.preset += ' -c copy -max_muxing_queue_size 9999';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue