From 034250f74a373928564f6eaef0698cfc658670f6 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 12 Dec 2021 17:18:55 +0000 Subject: [PATCH] Prevent breaking changes regarding inputs --- Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js b/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js index df81ca1..b0a80d2 100644 --- a/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js +++ b/Community/Tdarr_Plugin_MC93_Migz5ConvertAudio.js @@ -11,8 +11,8 @@ const details = () => ({ Tags: 'pre-processing,ffmpeg,audio only,configurable', Inputs: [{ name: 'aac_stereo', - type: 'boolean', - defaultValue: false, + type: 'string', + defaultValue: '', inputUI: { type: 'text', }, @@ -136,7 +136,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { // Catch error here incase user left inputs.downmix empty. try { // Check if inputs.aac_stereo is set to true. - if (inputs.aac_stereo === true) { + if (inputs.aac_stereo === 'true') { // Check if codec_name for stream is NOT aac AND check if channel ammount is 2. if ( file.ffProbeData.streams[i].codec_name !== 'aac'