notify query string for unsplash

This commit is contained in:
Paul Wilde 2023-12-13 15:14:32 +00:00
parent de61baf816
commit 50a87752ab

View file

@ -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)