From 19fb4c78a159f18b638483d8256f54c8739a8b08 Mon Sep 17 00:00:00 2001 From: "M.B. Christiansen" Date: Mon, 10 Oct 2022 10:54:07 +0200 Subject: [PATCH] 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. --- kunst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kunst b/kunst index 7d2989d..b74e3ca 100755 --- a/kunst +++ b/kunst @@ -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//');