mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 16:00:28 -07:00
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:
commit
197d8e0500
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
"SharedArrayBuffer": "readonly"
|
"SharedArrayBuffer": "readonly"
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2018
|
"ecmaVersion": 2020
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"global-require":0,
|
"global-require":0,
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
// check if the file contains a hevc track
|
// check if the file contains a hevc track
|
||||||
// it will not be transcoded if true and the plugin will exit
|
// 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';
|
response.infoLog += '☑File is already in hevc! \n';
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue