From 089d7375ebecf551ba0c364cafebdffe754a9d27 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Fri, 7 Apr 2023 17:27:18 +0100 Subject: [PATCH] Throw error if unknown NORMALISATIONSTAGE --- ...arr_Plugin_NIfPZuCLU_2_Pass_Loudnorm_Audio_Normalisation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_NIfPZuCLU_2_Pass_Loudnorm_Audio_Normalisation.js b/Community/Tdarr_Plugin_NIfPZuCLU_2_Pass_Loudnorm_Audio_Normalisation.js index cdee32d..1bacd25 100644 --- a/Community/Tdarr_Plugin_NIfPZuCLU_2_Pass_Loudnorm_Audio_Normalisation.js +++ b/Community/Tdarr_Plugin_NIfPZuCLU_2_Pass_Loudnorm_Audio_Normalisation.js @@ -220,8 +220,7 @@ const plugin = async (file, librarySettings, inputs, otherArguments) => { return response; } // what is this tag? - response.infoLog += `Unknown normalisation stage tag: \n${probeData.format.tags.NORMALISATIONSTAGE}`; - return response; + throw new Error(`Unknown normalisation stage tag: \n${probeData.format.tags.NORMALISATIONSTAGE}`); }; module.exports.details = details;