Adapted to konachan API change

This commit is contained in:
Markus Koch 2016-12-23 18:06:32 +01:00
parent 9ed6f63962
commit 4d12f43a7f

View File

@ -58,6 +58,7 @@ while [ 0 ]; do
url=`echo $json | jq -r '.[0].file_url'` url=`echo $json | jq -r '.[0].file_url'`
ext=`echo $url | sed "s/.*\.//g"` ext=`echo $url | sed "s/.*\.//g"`
url="http:$url"
local_url="$picdir/$id.$ext" local_url="$picdir/$id.$ext"
echo "Updating wallpaper to $id..." echo "Updating wallpaper to $id..."