View Full Version : Trouble with NPR podcast opml

2007-07-27, 18:49
Just got my SB3 and love it. Setup so far was a really easy and straightforward, but I run into a problem with setting up NPR podcasts. Not sure, if it is a SB or NPR problem. I hope, this is the right place to post this message.

Anyway, when I put in an opml address from http://podcast.com/opml/npr.opml into the podcasts section of the plugin setup, everything works fine (this directory seems not very complete, however).

If I do the same with the opml file from the NPR website: http://www.npr.org/podcasts.opml, I get a "Failed to parse" error message on the SB. But in a web browser I can load the opml file just fine (and it looks very similar to the other one above). Also in the podcast setup section for the plugins in the Slimserver interface, the title line of the opml file isn't displayed. Instead the entire link shows up.

If anyone has any insights into this conundrum, I would really appreciate it. Thx

Paul Webster
2007-07-29, 01:59
The opml file from NPR doesn't have a header line beginning
which I think is what is causing the problem.

2007-07-29, 10:53
Thanks for the reply.

The file at http://podcast.com/opml/npr.opml doesn't have an <xml> opener either and works fine (I assume instead of <xml>, these files start with <opml>).

Does the opml file from npr.org actually work for anyone (I can't be the only one listening to NPR podcasts)?

Paul Webster
2007-07-29, 12:11
The one at podcast.com does have one
It begins

<?xml version="1.0" encoding="ISO-8859-1" ?>

Module XML.pm in slim/formats seems to require that it starts with <? - then xml or rss

I am having a little play with it right now.

2007-07-29, 18:10
Thanks Paul, that was actually very helpful. Turns out, when I load the opml file into a browser it doesn't show the <xml...> line. Apparently the NPR file is missing the <xml> opener, whereas the podcast.com file has it (as you stated before, but which I was ignorant about so far).

So, I took the NPR file, downloaded it to a local directory, edited the file and added the xml statement to the first line. And now it works! Somewhat peculiar is, that Slimserver/SB3 still ignores the <title> statement in that file and displays the full link (file:///C:/Program%20Files/...) instead.

2007-08-02, 06:45
Thanks for pointing this out. NPR's OPML file now has the XML header, and should now work with this program.

If you have any other problems with listening to NPR podcasts, please let us know at podcasts@npr.org.

Thanks for listening!

Paul Webster
2007-08-02, 17:00
Thanks, NPR, for updating your header.

I was going to put a pointer to this in WikiRadio - essentially to replace the existing (old) hand-crafted one that someone else made for it.
However, although it works ... the podcast names do not appear in the Squeezebox.
I think that this is because the field names in the NPR XML file are not quite what SlimServer is looking for.

Any chance of a SlimServer update to support these as alternate names?
Here is how it starts ..

<title>NPR Podcast Directory</title>
<dateCreated>Sat, 15 Oct 2005 00:00:00 -0400 </dateCreated>
<dateModified>Thu, 02 Aug 2007 19:53:11 -0400</dateModified>
<outline text="BySource">
<outline text="American Public Media">
text="APM: APM: Word for Word"
title="APM: APM: Word for Word"

Full version at http://www.npr.org/podcasts.opml
(it looks great in the SlimServer web gui via MyPicks - but not so good at he Squeezebox)

Paul Webster
2007-08-02, 17:11
However, although it works ... the podcast names do not appear in the Squeezebox.

Hmmm ... just tried it again and it was fine.

So - I'll add a new entry in WikiRadio called something like "NPR Podcasts (official)" since it comes direct from them ... and if it seems to work for everyone that uses that facility ... then we can remove the old one and rename etc etc.

Paul Webster
2007-08-05, 02:08
Well - this has been working really well.
So - I suggest a promotion from Wiki radio into the official Slimdevice Internet Radio or SlimPicks.

I've sent a note to AndyG as well.