|
|
|
@ -122,6 +122,21 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
|
|
|
+ 'Operation: Transcode. This classic plugin has Operation: ').concat(classicPlugin.details().Operation)
|
|
|
|
+ 'Operation: Transcode. This classic plugin has Operation: ').concat(classicPlugin.details().Operation)
|
|
|
|
+ 'Please use the Run Classic Filter Flow Plugin plugin instead.');
|
|
|
|
+ 'Please use the Run Classic Filter Flow Plugin plugin instead.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!Array.isArray(classicPlugin.dependencies)) return [3 /*break*/, 7];
|
|
|
|
|
|
|
|
if (!args.installClassicPluginDeps) return [3 /*break*/, 5];
|
|
|
|
|
|
|
|
args.jobLog("Installing dependencies for ".concat(pluginSourceId));
|
|
|
|
|
|
|
|
return [4 /*yield*/, args.installClassicPluginDeps(classicPlugin.dependencies)];
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
_d.sent();
|
|
|
|
|
|
|
|
return [3 /*break*/, 6];
|
|
|
|
|
|
|
|
case 5:
|
|
|
|
|
|
|
|
args.jobLog("Not installing dependencies for ".concat(pluginSourceId, ", please update Tdarr"));
|
|
|
|
|
|
|
|
_d.label = 6;
|
|
|
|
|
|
|
|
case 6: return [3 /*break*/, 8];
|
|
|
|
|
|
|
|
case 7:
|
|
|
|
|
|
|
|
args.jobLog("No depedencies to install for ".concat(pluginSourceId));
|
|
|
|
|
|
|
|
_d.label = 8;
|
|
|
|
|
|
|
|
case 8:
|
|
|
|
container = (0, fileUtils_1.getContainer)(args.inputFileObj._id);
|
|
|
|
container = (0, fileUtils_1.getContainer)(args.inputFileObj._id);
|
|
|
|
cacheFilePath = "".concat((0, fileUtils_1.getPluginWorkDir)(args), "/").concat((0, fileUtils_1.getFileName)(args.inputFileObj._id), ".").concat(container);
|
|
|
|
cacheFilePath = "".concat((0, fileUtils_1.getPluginWorkDir)(args), "/").concat((0, fileUtils_1.getFileName)(args.inputFileObj._id), ".").concat(container);
|
|
|
|
otherArguments = {
|
|
|
|
otherArguments = {
|
|
|
|
@ -138,7 +153,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
|
|
|
job: args.job,
|
|
|
|
job: args.job,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return [4 /*yield*/, classicPlugin.plugin(args.inputFileObj, args.librarySettings, args.inputs, otherArguments)];
|
|
|
|
return [4 /*yield*/, classicPlugin.plugin(args.inputFileObj, args.librarySettings, args.inputs, otherArguments)];
|
|
|
|
case 4:
|
|
|
|
case 9:
|
|
|
|
result = _d.sent();
|
|
|
|
result = _d.sent();
|
|
|
|
args.jobLog(JSON.stringify(result, null, 2));
|
|
|
|
args.jobLog(JSON.stringify(result, null, 2));
|
|
|
|
if (!result) {
|
|
|
|
if (!result) {
|
|
|
|
@ -252,7 +267,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
|
|
|
updateWorker: args.updateWorker,
|
|
|
|
updateWorker: args.updateWorker,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return [4 /*yield*/, cli.runCli()];
|
|
|
|
return [4 /*yield*/, cli.runCli()];
|
|
|
|
case 5:
|
|
|
|
case 10:
|
|
|
|
res = _d.sent();
|
|
|
|
res = _d.sent();
|
|
|
|
if (res.cliExitCode !== 0) {
|
|
|
|
if (res.cliExitCode !== 0) {
|
|
|
|
args.jobLog("Running ".concat(cliPath, " failed"));
|
|
|
|
args.jobLog("Running ".concat(cliPath, " failed"));
|
|
|
|
|