Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    26

    Trouble with NPR podcast opml

    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

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,095
    The opml file from NPR doesn't have a header line beginning
    <XML
    which I think is what is causing the problem.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  3. #3
    Junior Member
    Join Date
    Jul 2007
    Posts
    26
    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)?

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,095
    The one at podcast.com does have one
    It begins
    Code:
     <?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.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  5. #5
    Junior Member
    Join Date
    Jul 2007
    Posts
    26
    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.

  6. #6
    Junior Member
    Join Date
    Aug 2007
    Posts
    1
    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!

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,095
    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 ..
    Code:
    	<head>
    		<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>
    		<ownerName>NPR</ownerName>
    		<ownerEmail>podcasts@npr.org</ownerEmail>
    	</head>
    	<body>
    		<outline text="BySource">
    		<outline text="American Public Media">
    			<outline 
    				text="APM: APM: Word for Word"
    				title="APM: APM: Word for Word"
    				type="rss"
    				version="RSS"
    				xmlUrl="http://www.npr.org/rss/podcast.php?id=510100"
    				htmlUrl="http://wordforword.publicradio.org"
    			/>
    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
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  8. #8
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,095
    Quote Originally Posted by Paul Webster View Post
    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
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,095
    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.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •