reddit wallpaper fix
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
set -e
|
||||
|
||||
# There are 2 subreddits "wallpapers" and "wallpaper" the 2nd one is bigger.
|
||||
SUB="${1:-wallpaper}"
|
||||
|
||||
# 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/$SUB/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"
|
||||
|
||||
Reference in New Issue
Block a user