mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
Prune blank args
This commit is contained in:
parent
9e0812b143
commit
d9d03b9517
4 changed files with 14 additions and 9 deletions
|
|
@ -141,20 +141,22 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
|||
|
||||
cliArgs.push(outputFilePath);
|
||||
|
||||
const spawnArgs = cliArgs.map((row) => row.trim()).filter((row) => row !== '');
|
||||
|
||||
args.jobLog('Processing file');
|
||||
args.jobLog(JSON.stringify({
|
||||
cliArgs,
|
||||
spawnArgs,
|
||||
outputFilePath,
|
||||
}));
|
||||
|
||||
args.updateWorker({
|
||||
CLIType: args.ffmpegPath,
|
||||
preset: cliArgs.join(' '),
|
||||
preset: spawnArgs.join(' '),
|
||||
});
|
||||
|
||||
const cli = new CLI({
|
||||
cli: args.ffmpegPath,
|
||||
spawnArgs: cliArgs,
|
||||
spawnArgs,
|
||||
spawnOpts: {},
|
||||
jobLog: args.jobLog,
|
||||
outputFilePath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue