mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Removed useless dependency
This commit is contained in:
parent
a02379f240
commit
5198d4b805
2 changed files with 4 additions and 9 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import path from 'path';
|
||||
import { getFileName } from '../../../../FlowHelpers/1.0.0/fileUtils';
|
||||
import {
|
||||
IpluginDetails,
|
||||
|
|
@ -130,8 +129,8 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
|||
const arr = String(args.inputs.arr);
|
||||
const arr_host = String(args.inputs.arr_host).trim();
|
||||
const arrHost = arr_host.endsWith('/') ? arr_host.slice(0, -1) : arr_host;
|
||||
const originalFileName = path.join(args.originalLibraryFile?._id ?? '');
|
||||
const currentFileName = path.join(args.inputFileObj?._id ?? '');
|
||||
const originalFileName = args.originalLibraryFile?._id ?? '';
|
||||
const currentFileName = args.inputFileObj?._id ?? '';
|
||||
const headers: IHTTPHeaders = {
|
||||
'Content-Type': 'application/json',
|
||||
'X-Api-Key': String(args.inputs.arr_api_key),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue