Index: RssNews.pm =================================================================== --- RssNews.pm (revision 6828) +++ RssNews.pm (working copy) @@ -77,6 +77,7 @@ use Socket; use vars qw($VERSION); +use LWP::UserAgent; use XML::Simple; use File::Spec::Functions qw(:ALL); @@ -460,19 +461,17 @@ $getFeedXml_semaphore = 1; } - my $http = Slim::Player::Protocols::HTTP->new({ - 'url' => $feed_url, - 'create' => 0, - }); + # bug 3242. Using LWP in order to support redirects + my $ua = LWP::UserAgent->new; + my $req = HTTP::Request->new('GET' => $feed_url); + my $res = $ua->request($req); - if (defined $http) { + if ($res->is_error) { + $::d_plugins && msg("RssNews failed to retrieve feed <$feed_url>: " . $res->status_line . "\n"); + } + if ($res->is_success) { + my $content = $res->content; - my $content = $http->content(); - - $http->close(); - - return 0 unless defined $content; - # very verbose debugging #$::d_plugins && msg("RssNews: $feed_url\n"); #$::d_plugins && msg("\n$content\n\n");