Bug 422934 - Option to render (and/or otherwise make available) details about the picture of the day (potd) wallpaper
Summary: Option to render (and/or otherwise make available) details about the picture ...
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Unmaintained
Component: Picture of the Day (other bugs)
Version First Reported In: 5.18.5
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-13 18:43 UTC by William Kendrick
Modified: 2022-03-30 08:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.25
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Kendrick 2020-06-13 18:43:28 UTC
It would be great if the Picture of the Day desktop wallpaper plugin had the option to either render (directly onto the image), or otherwise make available (say, via an optional plasma widget that one could add to the desktop) some of the metadata about the image currently being used as the desktop wallpaper.

That is, the credits (photographer/artist/etc. of the image) and descriptive information (the title or subject of the image, its description, etc.).

For example, the "Astronomy (NASA)" (aka Astronomy Picture of the Day (APOD)) image today (June 13, 2020), sourced from https://apod.nasa.gov/apod/ap200613.html, could show:
* Title: "SpaceX Demo-2 Launch"
* Credit: "NASA/Joel Kowsky"
* Description: "Clouds are white but the sky is dark in this snapshot of Launch Complex 39A at the Kennedy Space Center. The dramatic daytime sky...[etc.]"

And the "Unsplash" image I'm seeing today (June 13, 2020), sourced from https://unsplash.com/photos/vv-oEGlN-4E, could show:
* Title: "aerial view of asphalt road surrounded by trees" (oddly, only seen in page's <title> tag)
* Credit: "Jaromír Kavan"
* Description: "Transfagarasan by Drone" (perhaps also with the geo-location, "Transfăgărășan, Sibiu, Romania")
Comment 1 charly ghislain 2020-07-13 08:41:34 UTC
Once parsed by the providers, a plasma widget to display the caption would be awesome.
Comment 2 Siddhartha 2020-08-05 18:17:33 UTC
I'd like this feature very much. I frequently open bing.com manually to find out the details (location/background) of a particular wallpaper that looks amazing.

Also, sometimes the wallpaper of a particular day is not attractive. An additional cool option would be to be able to load wallpapers from previous days, say using navigation arrows or a date picker on a widget, that'll allow the users to manually load historical wallpapers from an arbitrary day (provided the source supports accessing previous wallpapers, of course).
Comment 3 Fushan Wen 2022-01-20 17:53:23 UTC
I have finished adding title, author and the download URL for the Bing provider. However it seems impossible to show the information in the config dialog using the current code.
Comment 4 Bug Janitor Service 2022-01-20 19:08:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/106
Comment 5 Bug Janitor Service 2022-01-30 13:32:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/834
Comment 6 Bug Janitor Service 2022-02-09 03:45:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/114
Comment 7 Fushan Wen 2022-02-14 01:46:33 UTC
Git commit 9d0bac2055a51feff05213dae5be028866b2e57d by Fushan Wen.
Committed on 14/02/2022 at 01:43.
Pushed by fusionfuture into branch 'master'.

dataengines/potd: Move image to PotdProviderData

PotdProviderData is used to store wallpaper data. The design is to keep
binary compatibility.

M  +1    -1    dataengines/potd/HowToAddProvider.txt
M  +1    -6    dataengines/potd/apodprovider.cpp
M  +0    -13   dataengines/potd/apodprovider.h
M  +1    -6    dataengines/potd/bingprovider.cpp
M  +0    -13   dataengines/potd/bingprovider.h
M  +1    -6    dataengines/potd/cachedprovider.cpp
M  +0    -9    dataengines/potd/cachedprovider.h
M  +1    -6    dataengines/potd/epodprovider.cpp
M  +0    -13   dataengines/potd/epodprovider.h
M  +1    -6    dataengines/potd/flickrprovider.cpp
M  +0    -10   dataengines/potd/flickrprovider.h
M  +1    -6    dataengines/potd/natgeoprovider.cpp
M  +0    -11   dataengines/potd/natgeoprovider.h
M  +1    -6    dataengines/potd/noaaprovider.cpp
M  +0    -13   dataengines/potd/noaaprovider.h
M  +24   -0    dataengines/potd/potdprovider.cpp
M  +14   -2    dataengines/potd/potdprovider.h
M  +1    -6    dataengines/potd/simonstalenhagprovider.cpp
M  +0    -13   dataengines/potd/simonstalenhagprovider.h
M  +1    -6    dataengines/potd/unsplashprovider.cpp
M  +0    -13   dataengines/potd/unsplashprovider.h
M  +1    -6    dataengines/potd/wcpotdprovider.cpp
M  +0    -13   dataengines/potd/wcpotdprovider.h
M  +2    -7    templates/plasmapotdprovider/src/%{APPNAMELC}.cpp
M  +0    -8    templates/plasmapotdprovider/src/%{APPNAMELC}.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/9d0bac2055a51feff05213dae5be028866b2e57d
Comment 8 Nate Graham 2022-03-29 20:44:52 UTC
Git commit d68fb6f8365eee18eebb6e48822cffd195e32a94 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Add title, author, remoteUrl and infoUrl in PotdProvider

They are required for getting the information of an image from the
provider.

M  +20   -0    wallpapers/potd/plugins/potdprovider.cpp
M  +37   -0    wallpapers/potd/plugins/potdprovider.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/d68fb6f8365eee18eebb6e48822cffd195e32a94
Comment 9 Nate Graham 2022-03-29 20:44:54 UTC
Git commit b5f8a25ea67550d4d987898b753aa7fec4635556 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

wallpapers/potd: Implement save action in the backend

To perform copy jobs.

M  +2    -0    wallpapers/potd/plugins/CMakeLists.txt
M  +1    -0    wallpapers/potd/plugins/potdplugin.cpp
M  +83   -0    wallpapers/potd/plugins/potdprovidermodel.cpp
M  +41   -0    wallpapers/potd/plugins/potdprovidermodel.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/b5f8a25ea67550d4d987898b753aa7fec4635556
Comment 10 Nate Graham 2022-03-29 20:45:00 UTC
Git commit 246557302d357d5a45e167268cdc0fd3de65ef0b by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Add more roles

Expose more data in PotdProviderModel.

M  +64   -0    wallpapers/potd/plugins/potdprovidermodel.cpp
M  +22   -0    wallpapers/potd/plugins/potdprovidermodel.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/246557302d357d5a45e167268cdc0fd3de65ef0b
Comment 11 Nate Graham 2022-03-29 20:45:02 UTC
Git commit 697943a00dca6eba1a07c6c167145568ae9e93fa by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

wallpapers/potd: Show wallpaper information in the config dialog

In the wallpaper config dialog, the preview, the title and the author of
today's picture will be shown.
FIXED-IN: 5.25

A  +37   -0    wallpapers/potd/package/contents/ui/ActionContextMenu.qml     [License: LGPL(v2.0+)]
A  +45   -0    wallpapers/potd/package/contents/ui/SelectableLabel.qml     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +244  -0    wallpapers/potd/package/contents/ui/WallpaperDelegate.qml     [License: GPL(v2.0+)]
A  +65   -0    wallpapers/potd/package/contents/ui/WallpaperPreview.qml     [License: GPL(v2.0+)]
M  +86   -5    wallpapers/potd/package/contents/ui/config.qml
M  +19   -17   wallpapers/potd/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/697943a00dca6eba1a07c6c167145568ae9e93fa
Comment 12 Nate Graham 2022-03-29 20:45:08 UTC
Git commit fdf340dfefe0cdb6f5e68d11eb29f49e6a4a6d57 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Add `loading` to indicate the loading status

M  +35   -6    wallpapers/potd/plugins/potdprovidermodel.cpp
M  +5    -0    wallpapers/potd/plugins/potdprovidermodel.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/fdf340dfefe0cdb6f5e68d11eb29f49e6a4a6d57
Comment 13 Nate Graham 2022-03-29 20:45:10 UTC
Git commit bfef3f82611ac1428400eae80cee83536339c2be by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

wallpapers/potd: Use singleton to share data between QML files

After dataengine is gone, a singleton is required to share data.

M  +13   -0    wallpapers/potd/plugins/potdplugin.cpp
M  +14   -21   wallpapers/potd/plugins/potdprovidermodel.cpp
M  +4    -2    wallpapers/potd/plugins/potdprovidermodel.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/bfef3f82611ac1428400eae80cee83536339c2be
Comment 14 Nate Graham 2022-03-29 20:45:16 UTC
Git commit e1bf9e0d432deae9c8f712c80239037b79eb7efd by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Save wallpaper information to json file

M  +19   -0    wallpapers/potd/plugins/cachedprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/e1bf9e0d432deae9c8f712c80239037b79eb7efd
Comment 15 Nate Graham 2022-03-29 20:45:18 UTC
Git commit ed11e1bb9f607a71512eee73ba79ef460b62a5ab by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title and remoteUrl in SimonStalenhagProvider

Parse the title from the json data, and set the remote URL.

M  +13   -2    wallpapers/potd/plugins/simonstalenhagprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/ed11e1bb9f607a71512eee73ba79ef460b62a5ab
Comment 16 Nate Graham 2022-03-29 20:45:25 UTC
Git commit 6bff81fb6bf590f78c12b37f89f8bb613aff59c6 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, author, infoUrl and remoteUrl in NatGeoProvider

Parse the title, the author and the info URL from the HTML source, and set the
remote URL.

M  +41   -5    wallpapers/potd/plugins/natgeoprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/6bff81fb6bf590f78c12b37f89f8bb613aff59c6
Comment 17 Nate Graham 2022-03-29 20:45:33 UTC
Git commit e8272963b156ed9beda24f014cc4ce631cfee77a by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, author, infoUrl and remoteUrl in EpodProvider

Parse the title, the author and the infoUrl from the HTML source, and set the
remote URL.

M  +36   -4    wallpapers/potd/plugins/epodprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/e8272963b156ed9beda24f014cc4ce631cfee77a
Comment 18 Nate Graham 2022-03-29 20:45:34 UTC
Git commit 357b4ae50d22044579caeebfc59b1e229bb984ca by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, infoUrl and remoteUrl in WcpotdProvider

Parse the title and info URL from the json data, and set the remote URL.

M  +35   -11   wallpapers/potd/plugins/wcpotdprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/357b4ae50d22044579caeebfc59b1e229bb984ca
Comment 19 Nate Graham 2022-03-29 20:45:41 UTC
Git commit 84525a920b21be8d3823f71e410463d95bcc8726 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, author, infoUrl and remoteUrl in ApodProvider

Parse the title and the author from the HTML source, and set the
info URL and the remote URL.

M  +26   -6    wallpapers/potd/plugins/apodprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/84525a920b21be8d3823f71e410463d95bcc8726
Comment 20 Nate Graham 2022-03-29 20:45:49 UTC
Git commit df64a7159439bd8f7f83cacafabdbacd6794bc66 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Load wallpaper information in LoadImageThread

We save the information to a json file, and we need to read the
information from the json file.

M  +35   -5    wallpapers/potd/plugins/cachedprovider.cpp
M  +2    -2    wallpapers/potd/plugins/cachedprovider.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/df64a7159439bd8f7f83cacafabdbacd6794bc66
Comment 21 Nate Graham 2022-03-29 20:45:57 UTC
Git commit 945ee71c75d91bb6f13648b5cffb4a4954757f46 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, author, infoUrl and remoteUrl in BingProvider

Parse the title and the copyright text from the json data, and set the
info URL and the remote URL.

M  +25   -2    wallpapers/potd/plugins/bingprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/945ee71c75d91bb6f13648b5cffb4a4954757f46
Comment 22 Nate Graham 2022-03-29 20:46:05 UTC
Git commit b0ae7ffc59cb8e1c63c3f2026a7ae5c3c9c6a347 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, author, infoUrl and remoteUrl in FlickrProvider

Parse the title from XML, the author from the XML data, and set the
info URL and the remote URL.

M  +60   -4    wallpapers/potd/plugins/flickrprovider.cpp
M  +12   -1    wallpapers/potd/plugins/flickrprovider.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/b0ae7ffc59cb8e1c63c3f2026a7ae5c3c9c6a347
Comment 23 Nate Graham 2022-03-29 20:46:13 UTC
Git commit eac8ca8aafc18267af815c4685a65f95750afea6 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/03/2022 at 20:40.
Pushed by ngraham into branch 'master'.

dataengines/potd: Parse title, infoUrl and remoteUrl in NOAAProvider

Parse the title and the info URL from the HTML source, and set the remote URL.

M  +20   -8    wallpapers/potd/plugins/noaaprovider.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/eac8ca8aafc18267af815c4685a65f95750afea6
Comment 24 William Kendrick 2022-03-30 08:15:27 UTC
Thanks so much!