Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle WordPress` media:content #11

Open
sjehuda opened this issue Dec 3, 2016 · 0 comments
Open

Handle WordPress` media:content #11

sjehuda opened this issue Dec 3, 2016 · 0 comments

Comments

@sjehuda
Copy link
Owner

sjehuda commented Dec 3, 2016

Sub-element <media:content> may be of any tyoe of medium, such as audio, document, image, video and even executable, thus we treat it as an enclosure. See Multiple-Enclosures, Part II - The RSS Blog.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
   <channel>
      <title>sample</title>
      <description>sample</description>
      <link>http://sample</link>
      <item>
         <title>sample</title>
         <description>preview for sample</description>
         <enclosure url="http://sample/sample.mpg" length="23456" type="video/mpeg"/>
         <media:content  url="http://www.foo.com/movie.mp3" 
               fileSize="12345"  type="audio/mpeg" medium="audio" />      
     </item>
   </channel>
</rss>

Apparently, WordPress has its own practice of utilizing <media:content>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant