|
|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
|
exports.plugin = exports.details = void 0;
|
|
|
|
|
var fileUtils_1 = require("../../../../FlowHelpers/1.0.0/fileUtils");
|
|
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
|
|
var details = function () { return ({
|
|
|
|
|
name: 'Set Container',
|
|
|
|
|
@ -41,7 +42,11 @@ var plugin = function (args) {
|
|
|
|
|
var lib = require('../../../../../methods/lib')();
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
|
|
|
|
|
args.inputs = lib.loadDefaultValues(args.inputs, details);
|
|
|
|
|
args.variables.ffmpegCommand.container = String(args.inputs.container);
|
|
|
|
|
var newContainer = String(args.inputs.container);
|
|
|
|
|
if ((0, fileUtils_1.getContainer)(args.inputFileObj._id) !== args.inputs.container) {
|
|
|
|
|
args.variables.ffmpegCommand.container = newContainer;
|
|
|
|
|
args.variables.ffmpegCommand.shouldProcess = true;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
outputFileObj: args.inputFileObj,
|
|
|
|
|
outputNumber: 1,
|
|
|
|
|
|