From b594bb9dedde3c5b7f8a76296ad5a957ba0537f2 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 14 Jul 2023 19:16:51 -0400 Subject: [PATCH] v1.9 user port --- lidarr/AutoConfig.service.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lidarr/AutoConfig.service.bash b/lidarr/AutoConfig.service.bash index 3f1bf5b..867fa0b 100644 --- a/lidarr/AutoConfig.service.bash +++ b/lidarr/AutoConfig.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.8" +scriptVersion="1.9" #### Import Settings source /config/extended.conf @@ -45,9 +45,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)