diff --git a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js index fa86c44..b43ec57 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js +++ b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG.js @@ -48,7 +48,7 @@ function plugin(file, librarySettings, inputs) { preset: "", handBrakeMode: false, FFmpegMode: true, - reQueueAfter: true, + reQueueAfter: false, infoLog: "", }; @@ -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..2e2d2d6 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js +++ b/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js @@ -48,7 +48,7 @@ function plugin(file, librarySettings, inputs) { preset: "", handBrakeMode: false, FFmpegMode: true, - reQueueAfter: true, + reQueueAfter: false, infoLog: "", }; @@ -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