I have an RSS feed of a list of MP3's, mp3.xml. I'd like to play them
in the SB of course. I can link to the XML file using the podcast
plugin and the item names are displayed correctly but of course I can't
play them. I'd like to tweak podcasts/Plugin.pm to allow these streams
to play. Looking at the Perl script, I am a bit intimidated although I
could crank out some very pretty Pasal code back in the day.
It seems like simply adding a line or two would do the trick to parse
out the URL and stick wherever the podcst stream URL goes. Can
somebody point me in the right direction on this?
The releavant code *I think* for parsing the RSS feed comes around line
346 in podcasts/Plugin.pm:
elsif ($url =~ /^http\:/) {
# does a synchronous get
my $xml = Slim::Formats::XML->getFeedSync($url);
if ($xml && exists $xml->{'channel'}->{'title'}) {
# here for podcasts and RSS
$feedNamePrefs[$i] =
Slim::Formats::XML::unescapeAndTrim($xml->{'channel'}->{'title'});
} elsif ($xml && exists $xml->{'head'}->{'title'}) {
# here for OPML
$feedNamePrefs[$i] =
Slim::Formats::XML::unescapeAndTrim($xml->{'head'}->{'title'});
}
else {
# use url as title since we have nothing else
$feedNamePrefs[$i] = $url;
}
I am struck by the similarity of a podcast XML file which
plays...http://wfmu.org/podcast/SH.xml
<item>
<title>WFMU's Michael Shelley from Jan 19, 2008</title>
<link>http://wfmu.org/playlists/shows/25989</link>
<description>Michael Shelley Podcast on WFMU.org from Jan 19, 2008
(Includes an interview with Lulu!)</description>
<guid isPermaLink="true">http://wfmu.org/playlists/shows/25989</guid>
<enclosure length="36655107"
url="http://podcast.wfmu.org/SH/sh080119p.mp3" type="audio/mpeg" />
<pubDate>Mon, 21 Jan 2008 15:06:57 EST</pubDate>
<itunes:author>WFMU and Michael Shelley</itunes:author>
<itunes:duration>38:10</itunes:duration>
</item>
...and the mp3 stream XML file which doesn't
http://www.wfmu.org/archivefeed/mp3.xml
<item>
<title>WFMU MP3 Archive: Seven Second Delay with Ken and Andy Breckman
from Jan 23, 2008</title>
<link>http://wfmu.org/listen.m3u?show=26034&archive=40513</link>
<description><a
href="http://wfmu.org/listen.m3u?show=26034&archive=40513">Listen
to MP3 audio archive</a> from Seven Second Delay with Ken and Andy
Breckman on WFMU, from Jan 23, 2008</description>
<guid
isPermaLink="true">http://wfmu.org/listen.m3u?show=26034&archive=40513</guid>
<pubDate>Wed, 23 Jan 2008 19:59:01 EST</pubDate>
</item>
Thanks muchly for any help!
--
asteinmetz
------------------------------------------------------------------------
asteinmetz's Profile: http://forums.slimdevices.com/member.php?userid=4847
View this thread: http://forums.slimdevices.com/showthread.php?t=42648
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins