Bug 1572 - Unable to add Podcast feed
: Unable to add Podcast feed
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.1.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-18 11:51 UTC by sbjaerum
Modified: 2008-09-15 14:37 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sbjaerum 2005-05-18 11:51:25 UTC
I am using svn version 3244 and am unable to add new Podcast feeds.
Get the following message:
Undefined subroutine &Plugins::Podcast::unescapeAndTrim called at
C:/slim/svn/trunk/server/Plugins/Podcast/Plugin.pm line 254.

Changing line 254 in server/Plugins/Podcast/Plugin.pm from

$feedNamePrefs[$i] =
Plugins::Podcast::Browse::unescapeAndTrim($xml->{channel}->{title});

to

feedNamePrefs[$i] = $xml->{channel}->{title};

seems to fix the problem.
Comment 1 sbjaerum 2005-05-18 13:14:25 UTC
Probably want a call to the unescapeAndTrim function.
A better fix would be (line 254 in Plugin.pm):
$feedNamePrefs[$i] =
Slim::Buttons::PodcastBrowser::unescapeAndTrim($xml->{channel}->{title});
Comment 2 KDF 2005-05-18 13:57:32 UTC
looks like that one was missed when moving the podcast stuff to the core code. 
I believe this is Dave's task
Comment 3 Dave Cohen 2005-05-18 16:23:48 UTC
Thanks Steinar for making the fix so easy.
Comment 4 Blackketter Dean 2005-09-19 12:07:14 UTC
Here's my error:

2005-09-19 11:43:41.8244 RssNews failed to parse feed <http://www.pod-porn.com/xml/rss.xml> 
because:

unknown encoding at line 1, column 30, byte 30 at /Users/dean/slim/server/CPAN/XML/Parser.pm line 
187
2005-09-19 11:43:50.8565 Podcast: async request: http://www.pod-porn.com/xml/rss.xml
2005-09-19 11:43:51.3561 Podcast: got http://www.pod-porn.com/xml/rss.xml
2005-09-19 11:43:51.3576 Podcast: content type is text/xml
2005-09-19 11:43:51.3626 Podcast: failed to parse feed because:

unknown encoding at line 1, column 30, byte 30 at /Users/dean/slim/server/CPAN/XML/Parser.pm line 
187
Comment 5 KDF 2005-09-19 12:15:04 UTC
was this last comment meant for bug1392?
Comment 6 Blackketter Dean 2005-09-19 12:22:47 UTC
yeah, I'm stupid.  thanks.
Comment 7 KDF 2005-09-19 15:43:01 UTC
okies, closing this off then since Dan seems to have fixed the other.
Comment 8 Chris Owens 2006-06-16 14:41:17 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.