Attempt to support different collections of Unsplash

Authored by Guo Yunhe <i@guoyunhe.me> on Jul 25 2019, 1:15 PM.

Description

Attempt to support different collections of Unsplash

Summary:

  1. I used Unsplash Source API (unlimited, public) instead of parsing HTML. It should be faster and more reliable. (Parsing HTML may break anytime they update their website...)
  2. Create UnsplashBaseProvider, which has collectionId in constructor. Extend it in children classes to support different collections. Now support all wallpaper collections.

Reviewers: Plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, filipf, plasma-devel

Tags: Plasma

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

Details

Committed
Guo Yunhe <i@guoyunhe.me>Jul 27 2019, 5:07 PM
Reviewer
ngraham
Differential Revision
D22494: Attempt to support different collections of Unsplash
Parents
R114:7aa41f22a817: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown
Guo Yunhe <i@guoyunhe.me> committed R114:fe8c40dc3b9a: Attempt to support different collections of Unsplash (authored by Guo Yunhe <i@guoyunhe.me>).Jul 27 2019, 5:07 PM