Following on from yesterday, /reader now supports RSS enclosures. If an item includes one it is displayed beneath the content:
Now, I'm working on adding support to the live RSS feed so there may be some tests and breakage.
Following on from yesterday, /reader now supports RSS enclosures. If an item includes one it is displayed beneath the content:
Now, I'm working on adding support to the live RSS feed so there may be some tests and breakage.
Enclosures look to be working!
It was easy adding support to /reader, just a case of checking for the enclosure tag in an item, but having enclosures in my own posts was a little more challenging.
I've opted to add them using a new content filter and then process that in different ways based on where it is.
On the blog the filter is simply replaced with an audio tag. No problem there. For the RSS feed, however, I jump through a few hoops:
filesize()
and mime_content_type()
to get the required info from the fileIt's a little convoluted but seems to work okay and allows me to keep the same posting workflow, just with a different content filter.