From 975be4604eed2471bc26a031901cfb83a6e1b6fc Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 28 Jun 2022 05:07:32 -0400 Subject: [PATCH] v1.0.63 - switch to wget, disable timeout --- root/scripts/download.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index 8670b14..ceed7ab 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.62" +scriptVersion="1.0.63" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" = "null" ]; then lidarrUrlBase="" @@ -650,7 +650,7 @@ LidarrRootFolderCheck () { GetMissingCutOffList () { log ":: Downloading missing list..." - missingAlbumIds=$(curl -s "$lidarrUrl/api/v1/wanted/missing?page=1&pagesize=1000000000&sortKey=releaseDate&sortDirection=desc&apikey=${lidarrApiKey}" | jq -r '.records | .[] | .id') + missingAlbumIds=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/wanted/missing?page=1&pagesize=1000000000&sortKey=releaseDate&sortDirection=desc&apikey=${lidarrApiKey}" | jq -r '.records | .[] | .id') missingAlbumIdsTotal=$(echo "$missingAlbumIds" | sed -r '/^\s*$/d' | wc -l) log ":: FINDING MISSING ALBUMS: ${missingAlbumIdsTotal} Found"