WordPress RSS2 content importer, now with enclosures

Last night, while most crazy young people are out getting sorted for E’s and whizz, I decided to stay in and migrate the Exciting Hellebore Shew and Epistaxis Archives over to WordPress. To my dismay it appears that the standard WordPress RSS importer cannot handle enclosures, so there is no way to import a podcast series.

Rather than cut & paste seventy episodes of Epistaxis Time, I hacked up a new RSS2 importer based on the existing design, but using Magpie RSS to parse the RSS feeds. As a result we have a new parser that is more able to cope with the nuances of RSS2. You can download my code as a SVN diff here: http://svn.stodge.org/wordpress_rss2_import/magpie_rss2_import.diff

In order to make this work you will need a recentish version of Magpie RSS in a folder called ‘magpierss’ somewhere in your PHP search path. Just apply the diff at the root folder of your WordPress installation. This works best if you got WordPress via subversion… it’s much easier than downloading and unpacking tgz or zip files.

About Randi Mooney

I was the guy who put the Randi into the Mooney
This entry was posted in Free Software, General, PHP. Bookmark the permalink.

One Response to WordPress RSS2 content importer, now with enclosures

  1. filmcement says:

    In an earlier post, I noticed you were a fan of Daniel Kitson’s radio show and thought you might be interested in a silly little video a friend of mine has made. She chats to him about his teenage angst experiences – very funny stuff.
    http://www.youtube.com/watch?v=NeZD1wB1FPU

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>