From a46d45b2cda8904d01a07d4ded21608370c6c116 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Fri, 13 Oct 2023 05:08:49 +0100 Subject: [PATCH] Fix data bug --- .../tools/notifyRadarrOrSonarr/1.0.0/index.js | 9 +++++++-- .../tools/notifyRadarrOrSonarr/1.0.0/index.ts | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/FlowPlugins/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.js index 892552b39..8e3d98ef3 100644 --- a/FlowPlugins/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.js @@ -76,7 +76,12 @@ var details = function () { return ({ inputUI: { type: 'text', }, - tooltip: 'Input your arr host here. Example: http://192.168.1.1:7878', + tooltip: 'Input your arr host here.' + + '\\nExample:\\n' + + 'http://192.168.1.1:7878\\n' + + 'http://192.168.1.1:8989\\n' + + 'https://radarr.domain.com\\n' + + 'https://sonarr.domain.com\\n', }, ], outputs: [ @@ -141,7 +146,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function return [4 /*yield*/, args.deps.axios(requestConfig)]; case 4: res = _b.sent(); - seriesId = res.data.data.series.id; + seriesId = res.data.series.id; requestConfig2 = { method: 'post', url: "".concat(arrHost, "/api/v3/command"), diff --git a/FlowPluginsTs/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.ts index 031ef403e..2dd235b26 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/tools/notifyRadarrOrSonarr/1.0.0/index.ts @@ -113,7 +113,7 @@ const plugin = async (args: IpluginInputArgs): Promise => { }; const res = await args.deps.axios(requestConfig); - const seriesId = res.data.data.series.id; + const seriesId = res.data.series.id; const requestConfig2 = { method: 'post',