From aa80635f8cd8b215f181686d9b8be3aa8ef5ddbd Mon Sep 17 00:00:00 2001 From: aunefyren Date: Wed, 4 Oct 2023 13:35:37 +0200 Subject: [PATCH] Linting is hard --- ...00td_action_remove_stream_by_specified_property.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js b/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js index 5fb96449d..6e21b76a5 100644 --- a/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js +++ b/Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js @@ -116,10 +116,9 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { for (let i = 0; i < file.ffProbeData.streams.length; i += 1) { try { // Skip if the codec_type is filtered out - if( - codecTypeFilter.length !== 0 && - !codecTypeFilter.includes(String(file.ffProbeData.streams[i].codec_type)) - ) { + if ( + codecTypeFilter.length !== 0 + && !codecTypeFilter.includes(String(file.ffProbeData.streams[i].codec_type))) { continue; } @@ -130,7 +129,9 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { response.infoLog += `DEBUG: stream ${i} property for ${removeIfPropertyMissing[j]} is ${file.ffProbeData.streams[i][removeIfPropertyMissing[j]]} \n`; - if (file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === 'undefined' || file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === null) { + if ( + file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === 'undefined' + || file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === null) { emptyValue = true; response.infoLog += ` Removing stream ${i} which is has ${removeIfPropertyMissing[j]} missing`; break;