mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 10:15:54 -07:00
Final test completed
This commit is contained in:
parent
88227593f5
commit
da5806b00f
2 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
||||||
case 1:
|
case 1:
|
||||||
newPathOutput = _d.sent();
|
newPathOutput = _d.sent();
|
||||||
return [2 /*return*/, {
|
return [2 /*return*/, {
|
||||||
outputFileObj: newPathOutput.isSuccessful && newPathOutput.newPath ? __assign(__assign({}, args.inputFileObj), { _id: newPathOutput.newPath }) : args.inputFileObj,
|
outputFileObj: newPathOutput.isSuccessful && newPathOutput.newPath !== '' ? __assign(__assign({}, args.inputFileObj), { _id: newPathOutput.newPath }) : args.inputFileObj,
|
||||||
outputNumber: newPathOutput.isSuccessful ? 1 : 2,
|
outputNumber: newPathOutput.isSuccessful ? 1 : 2,
|
||||||
variables: args.variables,
|
variables: args.variables,
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
||||||
const newPathOutput = await getNewPath(arr === 'radarr' ? getNewPathTypes.radarr : getNewPathTypes.sonarr);
|
const newPathOutput = await getNewPath(arr === 'radarr' ? getNewPathTypes.radarr : getNewPathTypes.sonarr);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
outputFileObj: newPathOutput.isSuccessful && newPathOutput.newPath ? { ...args.inputFileObj, _id: newPathOutput.newPath } : args.inputFileObj,
|
outputFileObj: newPathOutput.isSuccessful && newPathOutput.newPath !== '' ? { ...args.inputFileObj, _id: newPathOutput.newPath } : args.inputFileObj,
|
||||||
outputNumber: newPathOutput.isSuccessful ? 1 : 2,
|
outputNumber: newPathOutput.isSuccessful ? 1 : 2,
|
||||||
variables: args.variables,
|
variables: args.variables,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue