From 6cbec2ad330fb6d006ba1a962d23155eb4dbe9ff Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 5 Feb 2024 14:24:02 +0000 Subject: [PATCH] 3.6 - Use new disableImvd config setting Disables script if disableImvdb setting is true... --- lidarr/Video.service.bash | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lidarr/Video.service.bash b/lidarr/Video.service.bash index 845b836..952bfff 100644 --- a/lidarr/Video.service.bash +++ b/lidarr/Video.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="3.5" +scriptVersion="3.6" scriptName="Video" ### Import Settings @@ -12,12 +12,22 @@ verifyConfig () { videoContainer="mkv" fi + if [ -z "$disableImvd" ]; then + disableImvd="fasle" + fi + if [ "$enableVideo" != "true" ]; then log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..." log "Sleeping (infinity)" sleep infinity fi - + + if [ "$disableImvd" = "true" ]; then + log "Script is not enabled, enable by setting disableImvd to \"false\" by modifying the \"/config/extended.conf\" config file..." + log "Sleeping (infinity)" + sleep infinity + fi + if [ -z "$downloadPath" ]; then downloadPath="/config/extended/downloads" fi