ssimunic / Daily-Reddit-Wallpaper

Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
http://ssimunic.github.io/Daily-Reddit-Wallpaper/
GNU General Public License v3.0
306 stars 51 forks source link

Skip posts where a URL can't be found #43

Closed naps62 closed 5 years ago

naps62 commented 5 years ago

The current top post in r/wallpapers is an animated wallpaper (https://www.reddit.com/r/wallpapers/comments/bysef0/in_light_of_the_release_date_reveal_here_is_my/)

This script is failing for me due to that. This extra check makes it skip to the second post instead of returning a result that doesn't actually have an image URL