v2 - Use new autoArtistAdderMonitored setting

#139 - Resolves this issue

New setting allows users to enable/disable monitoring of artists when automatically added via script..
This commit is contained in:
RandomNinjaAtk 2024-01-04 11:32:36 +00:00 committed by GitHub
parent 3b686a549f
commit 1cd883f7bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}