From b317648b4723777b877ee42901f13f7ddacef6c2 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 14 Jul 2023 20:02:46 +0000 Subject: [PATCH] 1.1 tweaks --- lidarr/AutoArtistAdder.bash | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/lidarr/AutoArtistAdder.bash b/lidarr/AutoArtistAdder.bash index 8018230..c27f23d 100644 --- a/lidarr/AutoArtistAdder.bash +++ b/lidarr/AutoArtistAdder.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0" +scriptVersion="1.1" scriptName="AutoArtistAdder" log () { @@ -46,17 +46,6 @@ if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrl="http://localhost:${lidarrPort}${lidarrUrlBase}" fi -# Debugging settings -#addRelatedArtists="true" -#addDeezerTopArtists="true" -#addDeezerTopAlbumArtists="true" -#addDeezerTopTrackArtists="true" -#topLimit="2" -#addRelatedArtists="true" -#numberOfRelatedArtistsToAddPerArtist="2" -#lidarrSearchForMissing=false - - sleepTimer=0.5 @@ -315,8 +304,8 @@ AddTidalArtistToLidarr () { # Loop Script for (( ; ; )); do - let i++ - logfileSetup + let i++ + logfileSetup verifyConfig if [ -z $lidarrSearchForMissing ]; then @@ -340,6 +329,7 @@ for (( ; ; )); do AddTidalRelatedArtists fi log "Script sleeping for 12 hours..." - sleep 12h + sleep 12h done + exit