From 1cd883f7bfedeb1f4c4ea25f31cb10f447548ea0 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 4 Jan 2024 11:32:36 +0000 Subject: [PATCH] v2 - Use new autoArtistAdderMonitored setting #139 - Resolves this issue New setting allows users to enable/disable monitoring of artists when automatically added via script.. --- lidarr/AutoArtistAdder.bash | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lidarr/AutoArtistAdder.bash b/lidarr/AutoArtistAdder.bash index 13162fd..0e8a0ab 100644 --- a/lidarr/AutoArtistAdder.bash +++ b/lidarr/AutoArtistAdder.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="1.9" +scriptVersion="2.0" scriptName="AutoArtistAdder" ### Import Settings @@ -21,6 +21,12 @@ verifyConfig () { autoArtistAdderInterval="12h" fi + if [ -z "$autoArtistAdderMonitored" ]; then + autoArtistAdderMonitored="true" + elif [ "$autoArtistAdderMonitored" != "true" ]; then + autoArtistAdderMonitored="false" + fi + } @@ -259,7 +265,7 @@ AddTidalArtistToLidarr () { \"foreignArtistId\": \"$foreignId\", \"qualityProfileId\": $qualityProfileId, \"metadataProfileId\": $metadataProfileId, - \"monitored\":true, + \"monitored\":$autoArtistAdderMonitored, \"monitor\":\"all\", \"rootFolderPath\": \"$path\", \"addOptions\":{\"searchForMissingAlbums\":$lidarrSearchForMissing}