From 34c05a5865443a3e6aa028a4f8ecb9ca6bb5b030 Mon Sep 17 00:00:00 2001 From: Idan Bush Date: Thu, 19 Dec 2024 07:14:17 +0000 Subject: [PATCH] Fix parameters --- Scripts/Flow/Applications/Radarr/Radarr - Movie Lookup.js | 2 +- .../Flow/Applications/Radarr/Radarr - Trigger Manual Import.js | 2 +- Scripts/Flow/Applications/Sonarr/Sonarr - TV Show Lookup.js | 2 +- .../Flow/Applications/Sonarr/Sonarr - Trigger Manual Import.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/Flow/Applications/Radarr/Radarr - Movie Lookup.js b/Scripts/Flow/Applications/Radarr/Radarr - Movie Lookup.js index d1e0928..1e5ac8c 100644 --- a/Scripts/Flow/Applications/Radarr/Radarr - Movie Lookup.js +++ b/Scripts/Flow/Applications/Radarr/Radarr - Movie Lookup.js @@ -12,7 +12,7 @@ import { Radarr } from 'Shared/Radarr'; * @output Movie found * @output Movie not found */ -function Script(URL, ApiKey) { +function Script(URL, ApiKey, UseFolderName) { URL = URL || Variables['Radarr.Url'] || Variables["Radarr.URI"]; ApiKey = ApiKey || Variables['Radarr.ApiKey']; const radarr = new Radarr(URL, ApiKey); diff --git a/Scripts/Flow/Applications/Radarr/Radarr - Trigger Manual Import.js b/Scripts/Flow/Applications/Radarr/Radarr - Trigger Manual Import.js index e2a7b92..cfef4a3 100644 --- a/Scripts/Flow/Applications/Radarr/Radarr - Trigger Manual Import.js +++ b/Scripts/Flow/Applications/Radarr/Radarr - Trigger Manual Import.js @@ -13,7 +13,7 @@ import { Radarr } from 'Shared/Radarr'; * @param {bool} MoveMode Import mode 'copy' or 'move' (default copy) * @output Command sent */ -function Script(URL, ApiKey) { +function Script(URL, ApiKey, ImportPath, UseUnmappedPath, MoveMode) { URL = URL || Variables['Radarr.Url'] || Variables["Radarr.URI"]; ApiKey = ApiKey || Variables["Radarr.ApiKey"]; ImportPath = ImportPath || Variables.file.FullName; diff --git a/Scripts/Flow/Applications/Sonarr/Sonarr - TV Show Lookup.js b/Scripts/Flow/Applications/Sonarr/Sonarr - TV Show Lookup.js index 93d7e97..3d70b10 100644 --- a/Scripts/Flow/Applications/Sonarr/Sonarr - TV Show Lookup.js +++ b/Scripts/Flow/Applications/Sonarr/Sonarr - TV Show Lookup.js @@ -12,7 +12,7 @@ import { Sonarr } from 'Shared/Sonarr'; * @output TV Show found * @output TV Show NOT found */ -function Script(URL, ApiKey) { +function Script(URL, ApiKey, UseFolderName) { URL = URL || Variables['Sonarr.Url'] || Variables['Sonarr.URI']; ApiKey = ApiKey || Variables['Sonarr.ApiKey']; const sonarr = new Sonarr(URL, ApiKey); diff --git a/Scripts/Flow/Applications/Sonarr/Sonarr - Trigger Manual Import.js b/Scripts/Flow/Applications/Sonarr/Sonarr - Trigger Manual Import.js index 61543e0..977ad4f 100644 --- a/Scripts/Flow/Applications/Sonarr/Sonarr - Trigger Manual Import.js +++ b/Scripts/Flow/Applications/Sonarr/Sonarr - Trigger Manual Import.js @@ -13,7 +13,7 @@ import { Sonarr } from 'Shared/Sonarr'; * @param {bool} MoveMode Import mode 'copy' or 'move' (default copy) * @output Command sent */ -function Script(URL, ApiKey) { +function Script(URL, ApiKey, ImportPath, UseUnmappedPath, MoveMode) { URL = URL || Variables['Sonarr.Url'] || Variables['Sonarr.URI']; ApiKey = ApiKey || Variables['Sonarr.ApiKey']; ImportPath = ImportPath || Variables.file.FullName;