Unsplash POTD: filter out banner image and pick random photo from latest

Authored by Guo Yunhe <i@guoyunhe.me> on Jul 14 2019, 8:04 AM.

Description

Unsplash POTD: filter out banner image and pick random photo from latest

Summary:
Have been using this Unsplash POTD for several days and found the wallpaper doesn't change by day.

Then I found two problem in the code:

  1. The HTML page contains a banner image, which almost never change. It is fetched first with previous regular expression.
  2. The photos on the page doesn't update everyday. Sometimes they update a bunch of photos at one time.

So I changed it to global match and pick a random one from latest photos. Looks more like picture of the day.

Reviewers: Plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D22451

Details

Committed
Guo Yunhe <i@guoyunhe.me>Jul 14 2019, 12:43 PM
Reviewer
ngraham
Differential Revision
D22451: Unsplash POTD: filter out banner image and pick random photo from latest
Parents
R114:38266fc0dc30: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown
Guo Yunhe <i@guoyunhe.me> committed R114:4352cf848d30: Unsplash POTD: filter out banner image and pick random photo from latest (authored by Guo Yunhe <i@guoyunhe.me>).Jul 14 2019, 12:43 PM