From 93164ba5837bbc81707855e296d62c3ab5bc351d Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 2 Jan 2022 17:32:14 +0000 Subject: [PATCH] Fix bug and add dropdown (#241) --- ...Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js b/Community/Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js index 10b078b..d2d0be7 100644 --- a/Community/Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js +++ b/Community/Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js @@ -103,7 +103,11 @@ const details = () => ({ type: 'string', defaultValue: 'false', inputUI: { - type: 'text', + type: 'dropdown', + options: [ + 'false', + 'true', + ], }, tooltip: `Input "true" if you want to skip SD (480p and 576p) files @@ -152,7 +156,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { // check if the file is SD and sdDisable is enabled // skip this plugin if so - if (['480p', '576p'].includes(file.video_resolution) && inputs.sdDisabled) { + if (['480p', '576p'].includes(file.video_resolution) && inputs.sdDisabled === 'true') { response.processFile = false; response.infoLog += '☒File is SD, not processing\n'; return response;