diff --git a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js index fa86c44..726ec05 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js +++ b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js @@ -62,11 +62,6 @@ function plugin(file, librarySettings, inputs) { response.container = "." + inputs.container; } - // Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams. - if (inputs.container == "mkv") { - extraArguments += "-map -0:d "; - } - // Check if file is a video. If it isn't then exit plugin. if (file.fileMedium !== "video") { response.processFile = false; @@ -111,6 +106,11 @@ function plugin(file, librarySettings, inputs) { } } + // Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams. + if (inputs.container == "mkv") { + extraArguments += `-map -0:d `; + } + // Check if 10bit variable is true. if (inputs.enable_10bit == "true") { // If set to true then add 10bit argument diff --git a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js index e3ae07b..38488c3 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js +++ b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js @@ -62,11 +62,6 @@ function plugin(file, librarySettings, inputs) { response.container = "." + inputs.container; } - // Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams. - if (inputs.container == "mkv") { - extraArguments += "-map -0:d "; - } - // Check if file is a video. If it isn't then exit plugin. if (file.fileMedium !== "video") { response.processFile = false; @@ -111,6 +106,11 @@ function plugin(file, librarySettings, inputs) { } } + // Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams. + if (inputs.container == "mkv") { + extraArguments += `-map -0:d `; + } + // Check if 10bit variable is true. if (inputs.enable_10bit == "true") { // If set to true then add 10bit argument diff --git a/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js b/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js index 6a5e25a..dd8d7c7 100644 --- a/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js +++ b/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js @@ -109,7 +109,7 @@ function plugin(file, librarySettings, inputs) { file.ffProbeData.streams[i].tags.title.toLowerCase().includes("sdh")) ) { ffmpegCommandInsert += `-map -0:s:${subtitleIdx} `; - response.infoLog += `☒Subtitle stream detected as being Commentary or Description, removing. Subtitle stream 0:s:${SubtitleIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`; + response.infoLog += `☒Subtitle stream detected as being Commentary or Description, removing. Subtitle stream 0:s:${subtitleIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`; convert = true; } } catch (err) {}