Replace API_URL trace with logging.

Uncertain why this was being echoed. If the intention was to
trace it, this should be done using `set -x`. If the intention was
to inform the user, it should be properly logged.
This commit is contained in:
M.B. Christiansen 2022-10-10 10:54:07 +02:00
parent a293b54818
commit 19fb4c78a1
1 changed files with 1 additions and 1 deletions

2
kunst
View File

@ -122,7 +122,7 @@ get_cover_online() {
# Try to get the album cover online from api.deezer.com
API_URL="https://api.deezer.com/search/autocomplete?q=$QUERY" && API_URL=${API_URL//' '/'%20'}
echo $API_URL
log "fetching $API_URL"
# Extract the albumcover from the json returned
JSON=$(curl -s "$API_URL")
ALBUM=$(echo "$JSON" | jq -r '.tracks.data[0].album.picture_big' | sed 's/null//');