From 9256c01a00be25bda96f0609cc3d20190fde4e59 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 6 Sep 2022 19:40:49 -0400 Subject: [PATCH] 1.0.003 - updated logging --- root/scripts/InvalidSeriesAutoCleaner.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/InvalidSeriesAutoCleaner.bash b/root/scripts/InvalidSeriesAutoCleaner.bash index 08a15a9..7dcefce 100644 --- a/root/scripts/InvalidSeriesAutoCleaner.bash +++ b/root/scripts/InvalidSeriesAutoCleaner.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.002" +scriptVersion="1.0.003" if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -30,7 +30,7 @@ log () { seriesTvdbId="$(curl -s --header "X-Api-Key:"$arrApiKey --request GET "$arrUrl/api/v3/health" | jq -r '.[] | select(.source=="RemovedSeriesCheck") | select(.type=="error")' | grep "message" | grep -o '[[:digit:]]*')" if [ -z "$seriesTvdbId" ]; then - log "No invalid tvdbid's reported by Sonarr health check, skipping..." + log "No invalid series (tvdbid) reported by Sonarr health check, skipping..." exit fi