Merge pull request #331 from HaveAGitGat/Update-Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js

Update tdarr plugin vdka tiered cpu crf based configurable.js
This commit is contained in:
HaveAGitGat 2022-08-31 18:40:47 +02:00 committed by GitHub
commit 197d8e0500
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2020
},
"rules": {
"global-require":0,

View file

@ -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;
}