From a14cecd5c577a8b5aa321316e611be8ffa721042 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 12 Feb 2024 13:07:19 +0000 Subject: [PATCH] 1.2 - Only run script if applicable... --- lidarr/ARLChecker | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lidarr/ARLChecker b/lidarr/ARLChecker index 6cd4102..0fd16a2 100644 --- a/lidarr/ARLChecker +++ b/lidarr/ARLChecker @@ -1,10 +1,18 @@ #!/usr/bin/with-contenv bash ### Default values -scriptVersion="1.1" +scriptVersion="1.2" scriptName="ARLChecker" sleepInterval='24h' ### Import Settings source /config/extended.conf +#### Import Functions +source /config/extended/functions + +if [ "$dlClientSource" == "tidal" ]; then + log "Script is not enabled, enable by setting dlClientSource to \"deezer\" or \"both\" by modifying the \"/config/extended.conf\" config file..." + log "Sleeping (infinity)" + sleep infinity +fi echo Starting ARL Token Check... # run py script @@ -21,4 +29,4 @@ else fi echo ARL Token Check Complete. Sleeping for ${sleepInterval}. -sleep ${sleepInterval} \ No newline at end of file +sleep ${sleepInterval}