From 69d170cb2aaadf9aedd6137706ea188b29b21683 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 15 Jul 2023 10:16:10 -0400 Subject: [PATCH] 2.2 - add new videoScriptInterval setting #18 --- lidarr/Video.service.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lidarr/Video.service.bash b/lidarr/Video.service.bash index d155236..e8588b7 100644 --- a/lidarr/Video.service.bash +++ b/lidarr/Video.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.1" +scriptVersion="2.2" scriptName="Video" #### Import Settings @@ -32,6 +32,10 @@ verifyConfig () { if [ -z "$downloadPath" ]; then downloadPath="/config/extended/downloads" fi + + if [ -z "$videoScriptInterval" ]; then + videoScriptInterval="15m" + fi if [ -z "$videoPath" ]; then log "ERROR: videoPath is not configured via the \"/config/extended.conf\" config file..." @@ -741,8 +745,8 @@ for (( ; ; )); do getArrAppInfo verifyApiAccess VideoProcess - log "Script sleeping for 15 minutes..." - sleep 15m + log "Script sleeping for $videoScriptInterval..." + sleep $videoScriptInterval done exit