From b5c9811d3bb9b25c74523905b83545ebd714f9c8 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 28 Feb 2020 18:13:20 -0800 Subject: [PATCH] Use HTTPS to fetch images --- kunst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kunst b/kunst index b447bbc..80785c7 100755 --- a/kunst +++ b/kunst @@ -102,10 +102,10 @@ get_cover_online() { fi # Try to get the album cover online from api.deezer.com - API_URL="http://api.deezer.com/search/autocomplete?q=$(mpc current)" && API_URL=${API_URL//' '/'%20'} + API_URL="https://api.deezer.com/search/autocomplete?q=$(mpc current)" && API_URL=${API_URL//' '/'%20'} # Extract the albumcover from the json returned - IMG_URL=$(curl -s "$API_URL" | jq -r '.playlists.data[0] | .picture_big') + IMG_URL=$(curl -s --ssl "$API_URL" | jq -r '.playlists.data[0] | .picture_big') if [ "$IMG_URL" = '' ] || [ "$IMG_URL" = 'null' ];then if [ ! $SILENT ];then @@ -116,7 +116,7 @@ get_cover_online() { if [ ! $SILENT ];then echo "kunst: cover found online" fi - curl -o $COVER -s $IMG_URL + curl -o $COVER -s --ssl $IMG_URL ARTLESS=false fi