From 2ff78d26cb41690fc51a378f1ce0f1d3d6d687e8 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 15 Jun 2022 11:28:53 +0000 Subject: [PATCH] bugfix --- root/scripts/download.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index 3d9ab5b..4a0cb0d 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -591,7 +591,7 @@ CheckLidarrBeforeImport () { AddRelatedArtists () { - lidarrArtistsData=$(curl -s "$lidarrUrl/api/v1/api/v1/artist?apikey=${lidarrApiKey}") + lidarrArtistsData="$(curl -s "$lidarrUrl/api/v1/artist?apikey=${lidarrApiKey}")" lidarrArtistTotal=$(echo "${lidarrArtistsData}"| jq -r '.[].sortName' | wc -l) lidarrArtistList=($(echo "${lidarrArtistsData}" | jq -r ".[].foreignArtistId")) lidarrArtistIds="$(echo "${lidarrArtistsData}" | jq -r ".[].foreignArtistId")" @@ -716,7 +716,6 @@ else log ":: ERROR :: dlClientSource set as: \"$dlClientSource\"" fi -AddRelatedArtists=true if [ "$AddRelatedArtists" = "true" ]; then AddRelatedArtists else