ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

feed_enclosures won't recognize .m4a file

June 25, 2007 7:08pm

Subscribe [0]
  • #1 / Jun 25, 2007 7:08pm

    smartpill

    456 posts

    I’m trying to set up a podcast feed and the last issue I have is that the feed_enclosures plugin doesn’t add the proper “type” to the enclosure. I’m getting:

    <enclosure url='http://www.smartpillweb.com/ee/images/uploads/sample.m4a' type='text/plain' length='407807' >

    where the “type” should be:

    type="audio/x-m4a"

    I added this to mimes.php:

    'm4a'    =>    'audio/x-m4a',

    but it didn’t help, and I cleared the cache.

    Here’s the original code:

    {exp:feed_enclosures type="rss" parse_list="y"}<a href="http://{episode_file}rel=enclosure">{episode_file}</a>{/exp:feed_enclosures}

    Anybody have any suggestions?

  • #2 / Jun 25, 2007 7:21pm

    Paul Burdick

    480 posts

    If you go that file directly, it is not showing an audio file but simply the contents of it.  I did a check and the server is sending a text/plain header for that file.  You might want to contact the owner of that site and suggest they update their server to send the correct headers for that file type.

  • #3 / Jun 25, 2007 7:57pm

    smartpill

    456 posts

    Thanks, I added the file type to the .htaccess file so now it plays properly when accessed directly, but I still have the same problem with the “type” not being recognized.

  • #4 / Jun 25, 2007 8:00pm

    Paul Burdick

    480 posts

    The plugin uses caching, so you might need to go into your /system/cache/ directory and delete the…um…the folder for this plugin, should be obviously named, but offhand I cannot remember what it is called.

  • #5 / Jun 25, 2007 8:37pm

    smartpill

    456 posts

    I cleared it (it’s called “feed_enclosures_cache”), but now the plugin isn’t doing anything, meaning it is blank where I have the enclosure code. I’m using the first build of EE 1.6. I haven’t updated to build 20070622. Could that possibly be related?

  • #6 / Jun 25, 2007 8:46pm

    Sue Crocker

    26054 posts

    It never hurts to update.

    Was this working in an earlier version of EE?

  • #7 / Jun 25, 2007 9:48pm

    Paul Burdick

    480 posts

    No, an update would not change this.  Nothing has changed dealing with plugin processing.

    If it is returning blank, then there might be an error or it is unable to parse the feed (should have an error for that too).  In Output and Debugging Preferences, do you have error reporting turned on to level 2?

  • #8 / Jun 26, 2007 1:21am

    smartpill

    456 posts

    Well, after updating, clearing cache, reinstalling and removing an “if” statement it is working. Thank you both once again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases