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:
parent
3b686a549f
commit
1cd883f7bf
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="1.9"
|
scriptVersion="2.0"
|
||||||
scriptName="AutoArtistAdder"
|
scriptName="AutoArtistAdder"
|
||||||
|
|
||||||
### Import Settings
|
### Import Settings
|
||||||
|
@ -21,6 +21,12 @@ verifyConfig () {
|
||||||
autoArtistAdderInterval="12h"
|
autoArtistAdderInterval="12h"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$autoArtistAdderMonitored" ]; then
|
||||||
|
autoArtistAdderMonitored="true"
|
||||||
|
elif [ "$autoArtistAdderMonitored" != "true" ]; then
|
||||||
|
autoArtistAdderMonitored="false"
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -259,7 +265,7 @@ AddTidalArtistToLidarr () {
|
||||||
\"foreignArtistId\": \"$foreignId\",
|
\"foreignArtistId\": \"$foreignId\",
|
||||||
\"qualityProfileId\": $qualityProfileId,
|
\"qualityProfileId\": $qualityProfileId,
|
||||||
\"metadataProfileId\": $metadataProfileId,
|
\"metadataProfileId\": $metadataProfileId,
|
||||||
\"monitored\":true,
|
\"monitored\":$autoArtistAdderMonitored,
|
||||||
\"monitor\":\"all\",
|
\"monitor\":\"all\",
|
||||||
\"rootFolderPath\": \"$path\",
|
\"rootFolderPath\": \"$path\",
|
||||||
\"addOptions\":{\"searchForMissingAlbums\":$lidarrSearchForMissing}
|
\"addOptions\":{\"searchForMissingAlbums\":$lidarrSearchForMissing}
|
||||||
|
|
Loading…
Reference in a new issue