mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js (#323)
Fix issue when one or more streams have an unknown codec_name
This commit is contained in:
parent
1f6512e6b6
commit
2d406424fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue