v1.0.100 - switch to curl

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

@ -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

Loading…
Cancel
Save