This commit is contained in:
deepjyoti30 2019-02-19 01:41:11 +05:30
parent f5980a987f
commit 769110971f
1 changed files with 2 additions and 2 deletions

4
kunst
View File

@ -24,12 +24,12 @@ get_cover_online() {
# extract the albumcover from the json returned
IMG_URL=$(curl -s "$API_URL" | jq -r '.playlists.data[0] | .picture_big')
if [ $IMG_URL = '' ] || [ $IMG_URL = 'null' ];then
if [ "$IMG_URL" = '' ] || [ "$IMG_URL" = 'null' ];then
echo "error: Cover not found online"
ARTLESS=true
else
echo "kunst: Cover found online"
wget -o $COVER $IMG_URL
wget -O "$COVER" "$IMG_URL"
ARTLESS=false
fi