From 32c45d60da988dec9054cbf763a1cf1defde6c32 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 31 Aug 2022 17:37:43 +0100 Subject: [PATCH 1/2] Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js --- .../Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e1d5aee..16def02 100644 --- a/Community/Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js +++ b/Community/Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js @@ -191,7 +191,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { // check if the file contains a hevc track // it will not be transcoded if true and the plugin will exit - if (file.ffProbeData.streams.filter((x) => x.codec_name.toLowerCase() === 'hevc').length) { + if (file.ffProbeData.streams.some((x) => x.codec_name?.toLowerCase() === 'hevc')) { response.infoLog += '☑File is already in hevc! \n'; return response; } From 0942e6b7cb2f672cee16a2baec37719df506f3be Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 31 Aug 2022 17:37:57 +0100 Subject: [PATCH 2/2] Use ecma 2020 --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index bc70f47..2b6b52b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,7 +12,7 @@ "SharedArrayBuffer": "readonly" }, "parserOptions": { - "ecmaVersion": 2018 + "ecmaVersion": 2020 }, "rules": { "global-require":0,