From a8c50335dc8bdfc916767c3a945d04c98037c4ce Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 18 Aug 2022 12:14:39 +0000 Subject: [PATCH] 1.0.036 - Bug fix for error message --- root/scripts/video.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/root/scripts/video.sh b/root/scripts/video.sh index 7e03cd0..a92a35f 100644 --- a/root/scripts/video.sh +++ b/root/scripts/video.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.035" +scriptVersion="1.0.036" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -705,8 +705,7 @@ for lidarrArtistId in $(echo $lidarrArtistIds); do log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: No IMVDB artist link found, skipping..." else - - imvdbArtistVideoCount=$(ls /config/extended/cache/imvdb/$lidarrArtistMusicbrainzId--*.json | wc -l) + imvdbArtistVideoCount=$(ls /config/extended/cache/imvdb/$lidarrArtistMusicbrainzId--*.json 2>/dev/null | wc -l) if [ $imvdbArtistVideoCount = 0 ]; then log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: No videos found, skipping..."