|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.74"
|
|
|
|
scriptVersion="1.0.75"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
if [ "$lidarrUrlBase" = "null" ]; then
|
|
|
|
if [ "$lidarrUrlBase" = "null" ]; then
|
|
|
|
lidarrUrlBase=""
|
|
|
|
lidarrUrlBase=""
|
|
|
@ -1217,7 +1217,7 @@ LidarrMissingAlbumSearch () {
|
|
|
|
log ":: Begin searching for missing artist albums via Lidarr Indexers..."
|
|
|
|
log ":: Begin searching for missing artist albums via Lidarr Indexers..."
|
|
|
|
lidarrArtistsData=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/artist?apikey=$lidarrApiKey" | jq -r .[])
|
|
|
|
lidarrArtistsData=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/artist?apikey=$lidarrApiKey" | jq -r .[])
|
|
|
|
lidarrArtistIds=$(echo $lidarrArtistsData | jq -r .id)
|
|
|
|
lidarrArtistIds=$(echo $lidarrArtistsData | jq -r .id)
|
|
|
|
lidarrArtistIdsCount=$(echo $lidarrArtistIds | wc -l)
|
|
|
|
lidarrArtistIdsCount=$(echo "$lidarrArtistIds" | wc -l)
|
|
|
|
processCount=0
|
|
|
|
processCount=0
|
|
|
|
for lidarrArtistId in $(echo $lidarrArtistIds); do
|
|
|
|
for lidarrArtistId in $(echo $lidarrArtistIds); do
|
|
|
|
processCount=$(( $processCount + 1))
|
|
|
|
processCount=$(( $processCount + 1))
|
|
|
@ -1243,6 +1243,7 @@ LidarrMissingAlbumSearch () {
|
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
Configuration
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$configureLidarrWithOptimalSettings" = "true" ]; then
|
|
|
|
if [ "$configureLidarrWithOptimalSettings" = "true" ]; then
|
|
|
|