From e2146819555b634fd682a197671c592e801352a2 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Mon, 9 Oct 2023 08:50:47 +0100 Subject: [PATCH] Add log, fix output --- .../video/checkVideoStreamsCount/1.0.0/index.js | 3 ++- .../video/checkVideoStreamsCount/1.0.0/index.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/FlowPlugins/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.js index 8eb66f7..dbd649e 100644 --- a/FlowPlugins/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.js @@ -45,8 +45,9 @@ var plugin = function (args) { outputNumber = 1; // One video stream } else if (videoStreams > 1) { - outputNumber = 3; // More than one video stream + outputNumber = 2; // More than one video stream } + args.jobLog("Number of video streams: ".concat(videoStreams)); return { outputFileObj: args.inputFileObj, outputNumber: outputNumber, diff --git a/FlowPluginsTs/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.ts index 5f6f1c2..d7c530c 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/video/checkVideoStreamsCount/1.0.0/index.ts @@ -54,6 +54,8 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => { outputNumber = 2; // More than one video stream } + args.jobLog(`Number of video streams: ${videoStreams}`); + return { outputFileObj: args.inputFileObj, outputNumber,