mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
Add Custom Arguments
This commit is contained in:
parent
0d2da16688
commit
251b0cf064
4 changed files with 69 additions and 8 deletions
|
|
@ -107,7 +107,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
|||
cliArgs.push('-y');
|
||||
cliArgs.push('-i');
|
||||
cliArgs.push(args.inputFileObj._id);
|
||||
inputArgs = [];
|
||||
inputArgs = __spreadArray([], args.variables.ffmpegCommand.overallInputArguments, true);
|
||||
_a = args.variables.ffmpegCommand, shouldProcess = _a.shouldProcess, streams = _a.streams;
|
||||
streams = streams.filter(function (stream) {
|
||||
if (stream.removed) {
|
||||
|
|
@ -150,6 +150,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
|||
}
|
||||
idx = cliArgs.indexOf('-i');
|
||||
cliArgs.splice.apply(cliArgs, __spreadArray([idx, 0], inputArgs, false));
|
||||
cliArgs.push.apply(cliArgs, args.variables.ffmpegCommand.overallOuputArguments);
|
||||
outputFilePath = "".concat((0, fileUtils_1.getPluginWorkDir)(args), "/").concat((0, fileUtils_1.getFileName)(args.inputFileObj._id))
|
||||
+ ".".concat(args.variables.ffmpegCommand.container);
|
||||
cliArgs.push(outputFilePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue