From 42cb529efab0b33212a5d0b799fdea0b8f563025 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 14 Jul 2023 19:17:42 -0400 Subject: [PATCH] v2.1 - user port #17 --- lidarr/Video.service.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lidarr/Video.service.bash b/lidarr/Video.service.bash index fe46c01..d155236 100644 --- a/lidarr/Video.service.bash +++ b/lidarr/Video.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.0" +scriptVersion="2.1" scriptName="Video" #### Import Settings @@ -63,9 +63,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)