mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-18 03:36:26 -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
|
outputNumber = 1; // One video stream
|
||||||
}
|
}
|
||||||
else if (videoStreams > 1) {
|
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 {
|
return {
|
||||||
outputFileObj: args.inputFileObj,
|
outputFileObj: args.inputFileObj,
|
||||||
outputNumber: outputNumber,
|
outputNumber: outputNumber,
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,8 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
||||||
outputNumber = 2; // More than one video stream
|
outputNumber = 2; // More than one video stream
|
||||||
}
|
}
|
||||||
|
|
||||||
|
args.jobLog(`Number of video streams: ${videoStreams}`);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
outputFileObj: args.inputFileObj,
|
outputFileObj: args.inputFileObj,
|
||||||
outputNumber,
|
outputNumber,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue