changes subbreddit to wallpaper. Its bigger.

This commit is contained in:
Niklas 2020-06-18 14:29:35 +02:00
parent c32b016965
commit 46275d65d7

View File

@ -5,5 +5,8 @@
set -e
#wget -O - http://www.reddit.com/r/wallpapers.rss 2> /dev/null | grep -Eo "https://?[^&]+(jpg|png)" | grep -v "thumbs" | head -1
wget -O - "http://www.reddit.com/r/wallpapers/top/.json?t=day" 2> /dev/null | jq -r ".data.children[0].data.url"
# There are 2 subreddits "wallpapers" and "wallpaper" the 2nd one is bigger.
# wget -O - "http://www.reddit.com/r/wallpapers/top/.json?t=day" 2> /dev/null | jq -r ".data.children[0].data.url"
wget -O - "http://www.reddit.com/r/wallpaper/top/.json?t=day" 2> /dev/null | jq -r ".data.children[0].data.url"