Summary: | POTD flickr provider api_key 11829a470557ad8e10b02e80afacb3af expired | ||
---|---|---|---|
Product: | [Plasma] kdeplasma-addons | Reporter: | colin.xu |
Component: | Picture of the Day | Assignee: | Guo Yunhe <i> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | colin.xu, i, nate |
Priority: | NOR | ||
Version: | 5.19.5 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kdeplasma-addons/commit/04c4d02a334ca11c0c8954a932987ad5a5294967 | Version Fixed In: | 5.22 |
Description
colin.xu
2020-10-12 01:13:13 UTC
Maybe I will check if here are other ways to fetch the picture without API key. We cannot be sure if the key expired or get banned by flickr... (In reply to Guo Yunhe from comment #1) > Maybe I will check if here are other ways to fetch the picture without API > key. We cannot be sure if the key expired or get banned by flickr... How about simply parse flicker interesting calendar? i.e. https://www.flickr.com/explore/interesting/2020/10/ In that page we can parse the URL of pictures. But the size is very small. It is more complex to get a 1080p+ size image. (In reply to Guo Yunhe from comment #3) > In that page we can parse the URL of pictures. But the size is very small. > It is more complex to get a 1080p+ size image. Not just get the thumbnail version. From the interesting calendar, you direct get a _s version picture, plus a href to the album page of that picture, let say this one: <td class="FullDay" id="20201012"><a href="/explore/interesting/2020/10/12/" title="Zoom into October 12th 2020" onclick="intrestpop_show('20201012', 'October 12th 2020'); return false;"><img src="https://live.staticflickr.com/65535/50460505761_882f80f43f_s.jpg" width="75" height="75" class="Thumb" alt="Zoom into October 12th 2020" /></a> <div class="BlackDate">12</div> <div class="WhiteDate">12</div> </td> The small image for 10/12 is 50460505761_882f80f43f_s.jpg. You can find the album URL of this page here: intrestpop_HASH['20201012'] = [ {thumb:'https://live.staticflickr.com/65535/50460505761_882f80f43f_s.jpg', page:'/photos/86832534@N03/50460505761/'}, Thanks to well-formatted flickr image url: https://www.flickr.com/services/api/misc.urls.html you can go to the album page now and get any size of the picture: https://www.flickr.com/photos/86832534@N03/50460505761/sizes/l/ A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/35 Git commit bdf8e6fe7e71d7ba0bb82d34569cf8559adb8129 by Nate Graham, on behalf of Alexander Lohnau. Committed on 05/03/2021 at 17:09. Pushed by ngraham into branch 'master'. Fix outdated API key for flickr provider This is not a proper solution, but fixed it for now. See https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/35 which addresses the issues with LTS distors etc. M +1 -1 dataengines/potd/flickrprovider.cpp https://invent.kde.org/plasma/kdeplasma-addons/commit/bdf8e6fe7e71d7ba0bb82d34569cf8559adb8129 Git commit 905c21875e866ab59cc338ccff9ecd1c5ca84f21 by Nate Graham, on behalf of Alexander Lohnau. Committed on 05/03/2021 at 17:10. Pushed by ngraham into branch 'Plasma/5.21'. Fix outdated API key for flickr provider This is not a proper solution, but fixed it for now. See https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/35 which addresses the issues with LTS distors etc. (cherry picked from commit bdf8e6fe7e71d7ba0bb82d34569cf8559adb8129) M +1 -1 dataengines/potd/flickrprovider.cpp https://invent.kde.org/plasma/kdeplasma-addons/commit/905c21875e866ab59cc338ccff9ecd1c5ca84f21 Git commit 90a993061f0987bb46d42f2c5e9bf9c0d51291b6 by Nate Graham, on behalf of Alexander Lohnau. Committed on 05/03/2021 at 17:10. Pushed by ngraham into branch 'Plasma/5.18'. Fix outdated API key for flickr provider This is not a proper solution, but fixed it for now. See https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/35 which addresses the issues with LTS distors etc. (cherry picked from commit bdf8e6fe7e71d7ba0bb82d34569cf8559adb8129) M +1 -1 dataengines/potd/flickrprovider.cpp https://invent.kde.org/plasma/kdeplasma-addons/commit/90a993061f0987bb46d42f2c5e9bf9c0d51291b6 Fixed for now by changing the API key. Since this keeps happening, we are going to try to fix it in a more generic way in https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/35. Git commit 04c4d02a334ca11c0c8954a932987ad5a5294967 by Yunhe Guo, on behalf of Guo Yunhe. Committed on 08/03/2021 at 17:54. Pushed by guoyunhe into branch 'master'. [dataengines/potd] Fix flickr provider Now flickr provider always fetch the keys from KDE Invent. If the key expires, we just update it in KDE Invent, and users don't need to do anything. Fix #3 M +1 -1 dataengines/potd/CMakeLists.txt D +0 -3 dataengines/potd/flickrprovider.conf M +36 -33 dataengines/potd/flickrprovider.cpp M +11 -10 dataengines/potd/flickrprovider.h M +69 -6 dataengines/potd/potdprovider.cpp M +19 -5 dataengines/potd/potdprovider.h https://invent.kde.org/plasma/kdeplasma-addons/commit/04c4d02a334ca11c0c8954a932987ad5a5294967 |