From af2b16c7de5c7cf77117e2d99c07cab5b83ce776 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 16 Aug 2022 05:20:14 -0400 Subject: [PATCH] 1.0.235 - adjust lidarr api test --- root/scripts/audio.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/scripts/audio.sh b/root/scripts/audio.sh index 2153bd7..3757e56 100644 --- a/root/scripts/audio.sh +++ b/root/scripts/audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.234" +scriptVersion="1.0.235" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" = "null" ]; then @@ -38,9 +38,9 @@ log () { verifyApiAccess () { until false do - lidarrTest=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/system/status?apikey=${lidarrApiKey}" | jq -r .branch) - if [ $lidarrTest = master ]; then - lidarrVersion=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/system/status?apikey=${lidarrApiKey}" | jq -r .version) + lidarrVersion="" + lidarrVersion=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/system/status?apikey=${lidarrApiKey}" | jq -r .version) + if [ ! -z "$lidarrVersion" ]; then log "Lidarr Version: $lidarrVersion" break else