mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 09:45:55 -07:00
Add Tdarr_Plugin_z0ab_TheRealShadoh_FFmpeg_Subs_H264_Medium test
This commit is contained in:
parent
46db3be668
commit
a3e63ed696
3 changed files with 111 additions and 4 deletions
|
|
@ -255,7 +255,6 @@ class Configurator {
|
|||
function loopOverStreamsOfType(file, type, method) {
|
||||
let id = 0;
|
||||
for (let i = 0; i < file.ffProbeData.streams.length; i += 1) {
|
||||
console.log(file.ffProbeData.streams[i].codec_type);
|
||||
if (file.ffProbeData.streams[i].codec_type.toLowerCase() === type) {
|
||||
method(file.ffProbeData.streams[i], id);
|
||||
id += 1;
|
||||
|
|
@ -329,7 +328,6 @@ function buildAudioConfiguration(inputs, file, logger) {
|
|||
if ('tags' in stream) {
|
||||
// Remove unwanted languages
|
||||
if ('language' in stream.tags) {
|
||||
console.log(stream.tags.language.toLowerCase());
|
||||
if (languages.indexOf(stream.tags.language.toLowerCase()) === -1) {
|
||||
configuration.AddOutputSetting(`-map -0:a:${id}`);
|
||||
streams_removing += 1;
|
||||
|
|
@ -341,7 +339,6 @@ function buildAudioConfiguration(inputs, file, logger) {
|
|||
}
|
||||
});
|
||||
|
||||
console.log(stream_count, streams_removing);
|
||||
if (stream_count === streams_removing) {
|
||||
logger.AddError(
|
||||
'*** All audio tracks would have been removed, removing all delete entries',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// tdarrSkipTest
|
||||
const details = () => ({
|
||||
id: 'Tdarr_Plugin_z0ab_TheRealShadoh_FFmpeg_Subs_H264_Medium',
|
||||
Stage: 'Pre-processing',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue