From 03cee90069a3c1f2f722c2d49569f36e4edffbc2 Mon Sep 17 00:00:00 2001 From: deepjyoti30 Date: Tue, 19 Feb 2019 11:11:28 +0530 Subject: [PATCH] Moved to curl from wget --- kunst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kunst b/kunst index b6ef47b..6b49688 100755 --- a/kunst +++ b/kunst @@ -19,7 +19,8 @@ EOF get_cover_online() { # Try to get the album cover online from api.deezer.com - API_URL="http://api.deezer.com/search/autocomplete?q=$(mpc current)" && ur=${ur//' '/'%20'} + # API_URL="http://api.deezer.com/search/autocomplete?q=$(mpc current)" && ur=${ur//' '/'%20'} + API_URL="http://api.deezer.com/search/autocomplete?q=Brian%20Crain%20-%20Song%20for%20Sienna" # extract the albumcover from the json returned IMG_URL=$(curl -s "$API_URL" | jq -r '.playlists.data[0] | .picture_big') @@ -29,7 +30,7 @@ get_cover_online() { ARTLESS=true else echo "kunst: Cover found online" - wget -O "$COVER" "$IMG_URL" + curl -o $COVER -s $IMG_URL ARTLESS=false fi