Compare commits
No commits in common. "57efb4555f447fd29e747abf8b485509d28dd9d6" and "049a469659bde68906a4bd54afc4d7e4a4fae2eb" have entirely different histories.
57efb4555f
...
049a469659
@ -64,13 +64,13 @@ fi
|
|||||||
tags=`echo -n "$tags" | sed "s/ /%20/g"`
|
tags=`echo -n "$tags" | sed "s/ /%20/g"`
|
||||||
|
|
||||||
while [ 0 ]; do
|
while [ 0 ]; do
|
||||||
json=`curl "https://konachan.com/post.json?tags=$tags&limit=1"`
|
json=`curl "http://konachan.com/post.json?tags=$tags&limit=1"`
|
||||||
|
|
||||||
id=`echo $json | jq -r '.[0].id'`
|
id=`echo $json | jq -r '.[0].id'`
|
||||||
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="$url"
|
url="http:$url"
|
||||||
local_url="$picdir/$id.$ext"
|
local_url="$picdir/$id.$ext"
|
||||||
|
|
||||||
echo "Updating wallpaper to $id..."
|
echo "Updating wallpaper to $id..."
|
||||||
|
Loading…
Reference in New Issue
Block a user