notify query string for unsplash
This commit is contained in:
parent
de61baf816
commit
50a87752ab
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ const UNSPLASH_URL = "https://api.unsplash.com/photos/random?query=$QUERY&orient
|
|||
proc getFromUnsplash(q: var string): string =
|
||||
let dir = BG_DIR & "/unsplash/" & q & "/"
|
||||
createDir(dir)
|
||||
notify.send("Getting from Unsplash")
|
||||
notify.send("Getting from Unsplash",q)
|
||||
q = q.replace(" ","%20")
|
||||
let uri = UNSPLASH_URL.replace("$QUERY",q)
|
||||
var client = newHttpClient(timeout = 10000)
|
||||
|
|
Loading…
Reference in a new issue