Compare commits
2 Commits
049a469659
...
57efb4555f
Author | SHA1 | Date | |
---|---|---|---|
57efb4555f | |||
11f224221b |
@ -64,13 +64,13 @@ fi
|
||||
tags=`echo -n "$tags" | sed "s/ /%20/g"`
|
||||
|
||||
while [ 0 ]; do
|
||||
json=`curl "http://konachan.com/post.json?tags=$tags&limit=1"`
|
||||
json=`curl "https://konachan.com/post.json?tags=$tags&limit=1"`
|
||||
|
||||
id=`echo $json | jq -r '.[0].id'`
|
||||
url=`echo $json | jq -r '.[0].file_url'`
|
||||
ext=`echo $url | sed "s/.*\.//g"`
|
||||
|
||||
url="http:$url"
|
||||
url="$url"
|
||||
local_url="$picdir/$id.$ext"
|
||||
|
||||
echo "Updating wallpaper to $id..."
|
||||
|
Loading…
Reference in New Issue
Block a user