From 52ea1e735bbb52d8228f1e38fce299235d8301f6 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 8 Jul 2022 15:18:47 +0000 Subject: [PATCH] v1.0.100 - switch to curl --- 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 87516f4..4afaa66 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.99" +scriptVersion="1.0.100" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" = "null" ]; then lidarrUrlBase="" @@ -319,7 +319,7 @@ DArtistAlbumList () { fi if [ ! -f /config/extended/cache/deezer/${albumid}.json ]; then - if wget "https://api.deezer.com/album/${albumid}" -O "/config/extended/cache/deezer/${albumid}.json" -q; then + if curl -s "https://api.deezer.com/album/${albumid}" -o "/config/extended/cache/deezer/${albumid}.json"; then sleep $sleepTimer log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: $currentprocess of $albumcount :: Downloading Album info..." chmod 666 /config/extended/cache/deezer/${albumid}.json