From 46275d65d7f847a911b15b98b9e92fba57071ae8 Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 18 Jun 2020 14:29:35 +0200 Subject: [PATCH] changes subbreddit to wallpaper. Its bigger. --- .local/share/scripts/reddit-wp.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"