From 44877c0b5fa3128f0ddaf7f5d51950171ffe6481 Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Mon, 18 Nov 2024 21:13:04 +0000 Subject: [PATCH] fix the parsing --- unsplash_generator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsplash_generator.sh b/unsplash_generator.sh index 042faf6..a8c526c 100755 --- a/unsplash_generator.sh +++ b/unsplash_generator.sh @@ -11,7 +11,7 @@ PWD=$(dirname $(readlink -f $0)) # here are some other ways of downloading wallpaper #get random photo -url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.urls.raw') +url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.[].urls.full') #download the file wget -O $PWD/wallpaper.jpg $url