Media-RSS support

I am not sure if I posted in the right category, if not, I apologize.

Some video platform like Youtube or Peertube [1] use the Media-RSS [2] extension to provide metadata about the videos. They generally do not use the whole tags available, but provide tags for the video description, the thumbnail, and the number of views.

Youtube and Peertube videos are detected as attachments, and only the peertube thumbnails are displayed.
It would be amazing if tiny tiny RSS could display the thumbnail and the description for videos.

An extract of a Youtube feed [3]:

  <media:group>
   <media:title>Can You Observe a Typical Universe?</media:title>
   <media:content url="https://www.youtube.com/v/q-6oU3jXAho?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
   <media:thumbnail url="https://i2.ytimg.com/vi/q-6oU3jXAho/hqdefault.jpg" width="480" height="360"/>
   <media:description>Sign Up on Patreon to get access to the Space Time Discord! 
https://www.patreon.com/pbsspacetime

Check out the Space Time Merch Store
https://pbsspacetime.com/

The moment you started observing reality, you hopelessly polluted any conclusions you might make about it. The anthropic principle guarantees that you are NOT seeing the universe in most typical state. But used correctly, this highly controversial idea can be extremely powerful. So, how do you correctly use the anthropic principle?

Hosted by Matt O'Dowd
Written by Matt O'Dowd
Graphics by Leonardo Scholzer &amp; Adriano Leal
Directed by: Andrew Kornhaber
Executive Producers: Eric Brown &amp; Andrew Kornhaber 
...</media:description>
   <media:community>
    <media:starRating count="7709" average="4.92" min="1" max="5"/>
    <media:statistics views="176224"/>
   </media:community>http://www.rssboard.org/media-rss
  </media:group>

An extract of a Peertube feed [4] :

<media:group>
  <media:content type="application/x-bittorrent" url="https://framatube.org/static/torrents/ed5c048d-01f3-4ceb-97db-6e278de512b0-1080.torrent" isDefault="true">
  </media:content>
  <media:content type="application/x-bittorrent" url="https://framatube.org/static/torrents/ed5c048d-01f3-4ceb-97db-6e278de512b0-720.torrent">
  </media:content>
  <media:content type="application/x-bittorrent" url="https://framatube.org/static/torrents/ed5c048d-01f3-4ceb-97db-6e278de512b0-480.torrent">
  </media:content>
  <media:content type="application/x-bittorrent" url="https://framatube.org/static/torrents/ed5c048d-01f3-4ceb-97db-6e278de512b0-360.torrent">
  </media:content>
  <media:content type="application/x-bittorrent" url="https://framatube.org/static/torrents/ed5c048d-01f3-4ceb-97db-6e278de512b0-240.torrent">
  </media:content>
  <media:rating>nonadult</media:rating>
</media:group>
<media:thumbnail url="https://framatube.org/static/thumbnails/ed5c048d-01f3-4ceb-97db-6e278de512b0.jpg" height="122" width="223">
</media:thumbnail>

How they are both displayed:

What do you think?

[1] : https://joinpeertube.org
[2] : http://www.rssboard.org/media-rss
[3] : https://www.youtube.com/feeds/videos.xml?channel_id=UC7_gcs09iThXybpVgjHZ_7g
[4] : https://framatube.org/feeds/videos.xml?accountId=3

this should be easily solved via a plugin. bloating the parser with this because of youtube is probably not the best idea.

This is not just about Youtube and Peertube, as Media-RSS is an open standard, other tools use it, like RSS-Bridge (https://github.com/RSS-Bridge/rss-bridge) and some podcast providers.

just because something is supported by (a thing) and is an open standard doesn’t necessarily mean it has to be in core code. write a media-rss plugin, publish it on github for everyone, enjoy.

i wrote the plugin system for a reason. use it.

I have a plugin that makes it possible to do XSLT-type stuff to feeds, and I did just this for youtube’s RSS feed. The plugin recreates XSLT-style processing in php, I am considering rewriting it using php’s XSLT library; so I am not sure I want to publish it to the masses yet. :thinking:

maybe release it in beta? we will test it.

FYI, I just announced my XSLT plugin in themes/plugins:

https://community.tt-rss.org/t/xslt-plugin-announcement-still-incubating/3244

@azmeuk

My XSLT plugin does that. It will take a youtube atom feed and copy the thumbnail and description into the content element. The url format for a feed w/ my plugin is:

Where “xslt.localhost” triggers the plugin and “feedmorph” is the XSLT stylesheet to process. And url is the atom feed.

“feedmorph” will also morph slashdot and soylentnews to include the “from the …” department line (the department has always been included in the website, just not the atom content).

FYI.