Skip to content

Commit 1cd883f

Browse files
v2 - Use new autoArtistAdderMonitored setting
#139 - Resolves this issue New setting allows users to enable/disable monitoring of artists when automatically added via script..
1 parent 3b686a5 commit 1cd883f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lidarr/AutoArtistAdder.bash

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/with-contenv bash
2-
scriptVersion="1.9"
2+
scriptVersion="2.0"
33
scriptName="AutoArtistAdder"
44

55
### Import Settings
@@ -21,6 +21,12 @@ verifyConfig () {
2121
autoArtistAdderInterval="12h"
2222
fi
2323

24+
if [ -z "$autoArtistAdderMonitored" ]; then
25+
autoArtistAdderMonitored="true"
26+
elif [ "$autoArtistAdderMonitored" != "true" ]; then
27+
autoArtistAdderMonitored="false"
28+
fi
29+
2430
}
2531

2632

@@ -259,7 +265,7 @@ AddTidalArtistToLidarr () {
259265
\"foreignArtistId\": \"$foreignId\",
260266
\"qualityProfileId\": $qualityProfileId,
261267
\"metadataProfileId\": $metadataProfileId,
262-
\"monitored\":true,
268+
\"monitored\":$autoArtistAdderMonitored,
263269
\"monitor\":\"all\",
264270
\"rootFolderPath\": \"$path\",
265271
\"addOptions\":{\"searchForMissingAlbums\":$lidarrSearchForMissing}

0 commit comments

Comments
 (0)