From 66ff13884c50da8ba17baba1d65fe2921ad0e461 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 15 Jul 2023 10:26:05 -0400 Subject: [PATCH] v1.3 - add autoArtistAdderInterval #18 --- lidarr/AutoArtistAdder.bash | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lidarr/AutoArtistAdder.bash b/lidarr/AutoArtistAdder.bash index 1898f1a..39c71b3 100644 --- a/lidarr/AutoArtistAdder.bash +++ b/lidarr/AutoArtistAdder.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.2" +scriptVersion="1.3" scriptName="AutoArtistAdder" log () { @@ -31,6 +31,11 @@ verifyConfig () { log "Sleeping (infinity)" sleep infinity fi + + if [ -z "$autoArtistAdderInterval" ]; then + autoArtistAdderInterval="12h" + fi + } if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then @@ -328,8 +333,8 @@ for (( ; ; )); do AddDeezerRelatedArtists AddTidalRelatedArtists fi - log "Script sleeping for 12 hours..." - sleep 12h + log "Script sleeping for $autoArtistAdderInterval..." + sleep $autoArtistAdderInterval done exit