Bug 440164

Summary: Entries coming from PeerTube feeds should show the thumbnail of the video in the web feed
Product: [Websites] Planet KDE Reporter: Paul Brown <paul.brown>
Component: feedsAssignee: Jonathan Riddell <jr>
Status: RESOLVED FIXED    
Severity: normal CC: d_debnath, mundolibre, phu.nguyen
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Entries coming from YouTube show a clickable thumbnail of the video
PeerTube entries lacka a preview and paragraphs are mangles

Description Paul Brown 2021-07-22 17:21:26 UTC
Created attachment 140263 [details]
Entries coming from YouTube show a clickable thumbnail of the video

SUMMARY

The web feed at https://planet.kde.org/ should show a preview or thumbnail of a PeerTube video as it does with YouTube videos.

It should also not mangle the paragraphing of the description of the video as it currently does. Maybe this can be avoided by just showing the title of the video, instead of the full description.
Comment 1 Paul Brown 2021-07-22 17:22:38 UTC
Created attachment 140264 [details]
PeerTube entries lacka a preview and paragraphs are mangles
Comment 2 D. Debnath 2021-11-09 04:48:45 UTC
Yeah, I can confirm this.
Comment 3 Phu H. Nguyen 2021-11-25 10:12:45 UTC
This is a problem with the PeerTube feed content, not with the Planet site.

On the right-hand side of each article on Planet, you can see an "Atom" or "RSS" link to the actual content of the feed which includes the current and other articles from the same publisher. Planet only reads the content from those feeds (and removes custom CSS). The content of items in the feed, each corresponding to one article, should be in HTML. For example, here is the (RSS) feed of Nicco's personal site https://write.as/niccolove/feed/ in each "content" tag, you can see links to YouTube videos along with preview images, that's why those can be shown on Planet, as well as other feed readers.

On the other hand, here is the (Atom) feed of the KDE channel on the PeerTube instance https://tube.kockatoo.org/feeds/videos.atom?videoChannelId=3 "content" tags include no video link, some are even in Markdown which is not supported. You can see these entries appear as-is not only on Planet but also in Thunderbird for example.

Maybe you can try looking in PeerTube configurations for something related to feed content format?
Comment 4 Phu H. Nguyen 2021-11-25 10:59:51 UTC
After some more digging, I've found out that PeerTube seems to only support something called Media RSS (MRSS), not RSS 2.0 or Atom which Planet supports. So right now there might be no configuration in PeerTube to produce a feed in a format that is compatible right away with Planet.
Comment 5 Phu H. Nguyen 2022-12-04 06:35:33 UTC
Git commit 7ce3b49561f10012929de127496b3c91a0d3625d by Phu Nguyen.
Committed on 04/12/2022 at 06:35.
Pushed by phunh into branch 'master'.

Embed videos from KDE PeerTube

M  +4    -0    scripts/custom_generation.py

https://invent.kde.org/websites/planet-kde-org/commit/7ce3b49561f10012929de127496b3c91a0d3625d