mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Apply auto-build changes
This commit is contained in:
parent
80563106dd
commit
03367b0d42
1 changed files with 10 additions and 0 deletions
|
|
@ -126,10 +126,20 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
||||||
return [4 /*yield*/, cli.runCli()];
|
return [4 /*yield*/, cli.runCli()];
|
||||||
case 1:
|
case 1:
|
||||||
res = _a.sent();
|
res = _a.sent();
|
||||||
|
if (!(typeof args.updateStat !== 'undefined')) return [3 /*break*/, 3];
|
||||||
|
return [4 /*yield*/, args.updateStat(args.originalLibraryFile.DB, 'totalHealthCheckCount', 1)];
|
||||||
|
case 2:
|
||||||
|
_a.sent();
|
||||||
|
_a.label = 3;
|
||||||
|
case 3:
|
||||||
if (res.cliExitCode !== 0) {
|
if (res.cliExitCode !== 0) {
|
||||||
args.jobLog('Running CLI failed');
|
args.jobLog('Running CLI failed');
|
||||||
|
args.logOutcome('hErr');
|
||||||
throw new Error('Running CLI failed');
|
throw new Error('Running CLI failed');
|
||||||
}
|
}
|
||||||
|
args.logOutcome('hSuc');
|
||||||
|
// will cause item to go into the health check success table
|
||||||
|
args.variables.healthCheck = 'Success';
|
||||||
return [2 /*return*/, {
|
return [2 /*return*/, {
|
||||||
outputFileObj: args.inputFileObj,
|
outputFileObj: args.inputFileObj,
|
||||||
outputNumber: 1,
|
outputNumber: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue