|
|
|
|
@ -35,12 +35,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
|
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
|
};
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
|
exports.plugin = exports.details = void 0;
|
|
|
|
|
var path_1 = __importDefault(require("path"));
|
|
|
|
|
var fileUtils_1 = require("../../../../FlowHelpers/1.0.0/fileUtils");
|
|
|
|
|
var details = function () { return ({
|
|
|
|
|
name: 'Notify Radarr or Sonarr',
|
|
|
|
|
@ -155,8 +151,8 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
|
|
|
|
arr = String(args.inputs.arr);
|
|
|
|
|
arr_host = String(args.inputs.arr_host).trim();
|
|
|
|
|
arrHost = arr_host.endsWith('/') ? arr_host.slice(0, -1) : arr_host;
|
|
|
|
|
originalFileName = path_1.default.join((_b = (_a = args.originalLibraryFile) === null || _a === void 0 ? void 0 : _a._id) !== null && _b !== void 0 ? _b : '');
|
|
|
|
|
currentFileName = path_1.default.join((_d = (_c = args.inputFileObj) === null || _c === void 0 ? void 0 : _c._id) !== null && _d !== void 0 ? _d : '');
|
|
|
|
|
originalFileName = (_b = (_a = args.originalLibraryFile) === null || _a === void 0 ? void 0 : _a._id) !== null && _b !== void 0 ? _b : '';
|
|
|
|
|
currentFileName = (_d = (_c = args.inputFileObj) === null || _c === void 0 ? void 0 : _c._id) !== null && _d !== void 0 ? _d : '';
|
|
|
|
|
headers = {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
'X-Api-Key': String(args.inputs.arr_api_key),
|
|
|
|
|
|