v1.0.75 - bug fix for lidarrArtistIdsCount

pull/16/head
RandomNinjaAtk 3 years ago committed by GitHub
parent 9bff954ee4
commit 70d0413468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save