From 9d4ad785b22ff17d3a590dc2dce8908a1edc027a Mon Sep 17 00:00:00 2001 From: Akuma Date: Tue, 17 Aug 2021 13:51:10 +0000 Subject: [PATCH] Fixed the Endpoint --- kunst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kunst b/kunst index a843b76..f133e89 100755 --- a/kunst +++ b/kunst @@ -7,7 +7,7 @@ # Dependencies: sxiv, imagemagick, bash, ffmpeg, mpc, jq, mpd -VERSION=1.3.2 +VERSION=1.3.4 COVER=/tmp/kunst.jpg MUSIC_DIR=~/Music SIZE=250x250 @@ -112,9 +112,9 @@ 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 # Extract the albumcover from the json returned - IMG_URL=$(curl -s "$API_URL" | jq -r '.tracks.data[0].album.cover_big') + IMG_URL=$(curl -s "$API_URL" | jq -r '.playlists.data[0].picture_big') if [ "$IMG_URL" = '' ] || [ "$IMG_URL" = 'null' ];then [ ! "$SILENT" ] && echo "error: cover not found online"