Merge pull request #440 from HaveAGitGat/2.10.01

2.10.01
make-only-subtitle-default
HaveAGitGat 2 years ago committed by GitHub
commit 250a4f72d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
case 4:
result = _a.sent();
args.jobLog(JSON.stringify(result, null, 2));
outputNumber = result.processFile ? 1 : 2;
outputNumber = (result === null || result === void 0 ? void 0 : result.processFile) ? 1 : 2;
return [2 /*return*/, {
outputFileObj: args.inputFileObj,
outputNumber: outputNumber,

@ -139,6 +139,14 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
case 4:
result = _d.sent();
args.jobLog(JSON.stringify(result, null, 2));
if (!result) {
args.jobLog('No result from classic plugin. Continuing to next flow plugin.');
return [2 /*return*/, {
outputFileObj: args.inputFileObj,
outputNumber: 1,
variables: args.variables,
}];
}
// --- Backwards compatibility------------
if (result.handBrakeMode) {
result.handbrakeMode = result.handBrakeMode;

@ -15,8 +15,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.plugin = exports.details = void 0;
/* eslint-disable no-param-reassign */
var details = function () { return ({
name: 'Start',
description: 'Start FFmpeg Command',
name: 'Begin Command',
description: 'Begin creating the FFmpeg command for the current working file.'
+ ' Should be used before any other FFmpeg command plugins.',
style: {
borderColor: 'green',
},

@ -100,7 +100,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
args.jobLog(JSON.stringify(result, null, 2));
const outputNumber = result.processFile ? 1 : 2;
const outputNumber = result?.processFile ? 1 : 2;
return {
outputFileObj: args.inputFileObj,

@ -103,6 +103,15 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
args.jobLog(JSON.stringify(result, null, 2));
if (!result) {
args.jobLog('No result from classic plugin. Continuing to next flow plugin.');
return {
outputFileObj: args.inputFileObj,
outputNumber: 1,
variables: args.variables,
};
}
// --- Backwards compatibility------------
if (result.handBrakeMode) {
result.handbrakeMode = result.handBrakeMode;

@ -9,8 +9,9 @@ import { Istreams } from '../../../../FlowHelpers/1.0.0/interfaces/synced/IFileO
/* eslint-disable no-param-reassign */
const details = () :IpluginDetails => ({
name: 'Start',
description: 'Start FFmpeg Command',
name: 'Begin Command',
description: 'Begin creating the FFmpeg command for the current working file.'
+ ' Should be used before any other FFmpeg command plugins.',
style: {
borderColor: 'green',
},

Loading…
Cancel
Save