diff --git a/.local/share/scripts/reddit-wp.sh b/.local/share/scripts/reddit-wp.sh index 069c4bb..70aae7a 100755 --- a/.local/share/scripts/reddit-wp.sh +++ b/.local/share/scripts/reddit-wp.sh @@ -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"