mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Add log, fix output
This commit is contained in:
parent
6af54253ba
commit
e214681955
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue