https://bugs.kde.org/show_bug.cgi?id=382320
Bug ID: 382320 Summary: Wikimedia Picture of the Day does not work Product: kdeplasma-addons Version: 5.10.1 Platform: Fedora RPMs OS: Linux Status: UNCONFIRMED Severity: minor Priority: NOR Component: kimpanel-dataengine Assignee: plasma-b...@kde.org Reporter: sand...@sandfox.me Target Milestone: --- Problem: Picture of the Day not shown if Wikimedia is selected (black screen) Reproducuble: always Reason: https://github.com/KDE/kdeplasma-addons/blob/Plasma/5.10/dataengines/potd/wcpotdprovider.cpp#L54 Image retrieval for this options relies on a service that is down at the moment How to fix: The service can retrieve data directly from wikimedia with two requests 1) Request the picture at the day page [1] https://commons.wikimedia.org/w/api.php?action=query&prop=images&format=json&formatversion=2&titles=Template:Potd 1a) Get picture name at received json as name = query.pages[0].images[0].title 2) Query picture url by [2][3] https://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&format=json&formatversion=2&titles=***urlencode(name)***&iiprop=url 2a) Get target url as url = query.pages[0].imageinfo[0].url Sorry for the pseudocode, C++ is not my speciality [1] https://www.mediawiki.org/wiki/API:Showing_interesting_content [2] https://stackoverflow.com/questions/30781455/how-to-get-image-url-in-wiki-api [3] https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bimageinfo -- You are receiving this mail because: You are watching all bug changes.