suin/php-rss-writer

Media RSS Support

Opened this issue · 2 comments

Any chance of adding Media RSS support to the lib? Guardian, BBC, NYTimes, all leverage it. Enclosures are extremely limiting (sort of like the author vs dc:creator issue).

Along the lines of:

<media:content url="https://static01.nyt.com/images/2017/11/10/moth.jpg" type="image/jpeg" medium="image">
  <media:thumbnail url="https://static01.nyt.com/thumbnail/2017/11/10/moth.jpg"/>
  <media:title>Foo Bar</media:title>
</media:content>
<media:content url="https://static01.nyt.com/images/2017/11/10/fly.jpg" type="image/jpeg" medium="image">
  <media:thumbnail url="https://static01.nyt.com/thumb/2017/11/10/fly.jpg"/>
</media:content>

Yes, this is a must. MailChimp for example also expects <media:content> for the primary image of an article (instead of <enclosure>).