Working Program Driven Enclosures in Podcast Feeds that iTunes will Read.

September 22nd, 2006 § Leave a Comment

Problem

iTunes’ podcasting application refuses enclosures that do not end in an extension that it can recognise as an understandable file format. Example:

  • http://myhost/site/myfile.mp3 GOOD
  • http://myhost/site/myfile.php?file=141 BAD

So if you’re serving files from a database via an application, you’re out of luck no matter what headers you send.

Solution

Add a filename and additional question mark to the end of the URI:

  • http://myhost/site/myfile.php?file=141&filename.mp3?

(This is made easier if your php file has the filename.mp3 as it’s get parameter, as you just tack a ? on the end)

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Working Program Driven Enclosures in Podcast Feeds that iTunes will Read. at Code Cupboard.

meta

Follow

Get every new post delivered to your Inbox.