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:
parent
a293b54818
commit
19fb4c78a1
2
kunst
2
kunst
|
@ -122,7 +122,7 @@ get_cover_online() {
|
||||||
|
|
||||||
# Try to get the album cover online from api.deezer.com
|
# 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'}
|
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
|
# Extract the albumcover from the json returned
|
||||||
JSON=$(curl -s "$API_URL")
|
JSON=$(curl -s "$API_URL")
|
||||||
ALBUM=$(echo "$JSON" | jq -r '.tracks.data[0].album.picture_big' | sed 's/null//');
|
ALBUM=$(echo "$JSON" | jq -r '.tracks.data[0].album.picture_big' | sed 's/null//');
|
||||||
|
|
Loading…
Reference in New Issue