Fix data bug

make-only-subtitle-default
HaveAGitGat 2 years ago
parent 35f3976d6c
commit a46d45b2cd

@ -76,7 +76,12 @@ var details = function () { return ({
inputUI: { inputUI: {
type: 'text', 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: [ 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)]; return [4 /*yield*/, args.deps.axios(requestConfig)];
case 4: case 4:
res = _b.sent(); res = _b.sent();
seriesId = res.data.data.series.id; seriesId = res.data.series.id;
requestConfig2 = { requestConfig2 = {
method: 'post', method: 'post',
url: "".concat(arrHost, "/api/v3/command"), url: "".concat(arrHost, "/api/v3/command"),

@ -113,7 +113,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
}; };
const res = await args.deps.axios(requestConfig); const res = await args.deps.axios(requestConfig);
const seriesId = res.data.data.series.id; const seriesId = res.data.series.id;
const requestConfig2 = { const requestConfig2 = {
method: 'post', method: 'post',

Loading…
Cancel
Save