From e7672807a4f4751db6df3a26a45a5232e57c7c5c Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 14 Jul 2023 19:22:18 -0400 Subject: [PATCH] 1.3 switch to port #17 --- sonarr/AutoExtras.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonarr/AutoExtras.service b/sonarr/AutoExtras.service index a1d9a8c..f8df3fe 100644 --- a/sonarr/AutoExtras.service +++ b/sonarr/AutoExtras.service @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.2" +scriptVersion="1.3" scriptName="AutoExtras" #### Import Settings @@ -37,9 +37,9 @@ verifyApiAccess () { do arrApiTest="" arrApiVersion="" - if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ]; then + if [ "$arrPort" == "8989" ] || [ "$arrPort" == "7878" ]; then arrApiVersion="v3" - elif [ "$arrName" == "Lidarr" ] || [ "$arrName" == "Readarr" ]; then + elif [ "$arrPort" == "8686" ] || [ "$arrPort" == "8787" ]; then arrApiVersion="v1" fi arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName)