From c36453f8b001493e234ade5ec8380690a3f2f1ad Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 13 Jul 2023 07:01:14 -0400 Subject: [PATCH] v1.6 - Set fallback downloadPath and exit if videoPath is not configured #7 --- lidarr/Video.service.bash | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lidarr/Video.service.bash b/lidarr/Video.service.bash index e40c857..bb7e8aa 100644 --- a/lidarr/Video.service.bash +++ b/lidarr/Video.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.5" +scriptVersion="1.6" scriptName="Video" #### Import Settings @@ -16,6 +16,18 @@ if [ "$enableVideo" != "true" ]; then sleep infinity fi +if [ -z "$downloadPath" ]; then + downloadPath="/config/extended/downloads" +fi + +if [ -z "$videoPath" ]; then + log "ERROR: videoPath is not configured via the \"/config/extended.conf\" config file..." + log "Updated your \"/config/extended.conf\" file with the latest options, see: https://github.com/RandomNinjaAtk/arr-scripts/blob/main/lidarr/extended.conf" + log "Sleeping (infinity)" + sleep infinity +fi + + getArrAppInfo () { # Get Arr App information if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then