Bugs
This commit is contained in:
parent
f5980a987f
commit
769110971f
4
kunst
4
kunst
|
@ -24,12 +24,12 @@ get_cover_online() {
|
||||||
# extract the albumcover from the json returned
|
# extract the albumcover from the json returned
|
||||||
IMG_URL=$(curl -s "$API_URL" | jq -r '.playlists.data[0] | .picture_big')
|
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"
|
echo "error: Cover not found online"
|
||||||
ARTLESS=true
|
ARTLESS=true
|
||||||
else
|
else
|
||||||
echo "kunst: Cover found online"
|
echo "kunst: Cover found online"
|
||||||
wget -o $COVER $IMG_URL
|
wget -O "$COVER" "$IMG_URL"
|
||||||
ARTLESS=false
|
ARTLESS=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue