From 97afc8430f892ca188cc5bcb4f50832c3683ea64 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 6 Nov 2022 08:39:00 -0500 Subject: [PATCH] 1.0.055 - Bug fix, when tidal is not enabled #119 --- root/scripts/Video.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/root/scripts/Video.sh b/root/scripts/Video.sh index 080be67..c2e788b 100644 --- a/root/scripts/Video.sh +++ b/root/scripts/Video.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.054" +scriptVersion="1.0.055" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -585,7 +585,9 @@ NotifyWebhook () { } Configuration -TidalClientSetup +if [ "$sourcePreference" == "tidal" ]; + TidalClientSetup +fi AddFeaturedVideoArtists log "-----------------------------------------------------------------------------" @@ -654,7 +656,7 @@ for lidarrArtistId in $(echo $lidarrArtistIds); do fi musicbrainzVideoRelations="$(echo "$musicbrainzVideoRecordingData" | jq -r .relations[].url.resource)" - if [ $sourcePreference = tidal ]; then + if [ "$sourcePreference" == "tidal" ]; then if echo "$musicbrainzVideoRelations" | grep -i "tidal" | read; then videoDownloadUrl="$(echo "$musicbrainzVideoRelations" | grep -i "tidal" | head -n1)" else