Changeset 1886

Show
Ignore:
Timestamp:
11/29/06 12:14:14
Author:
miyagawa
Message:

use Plagger::FeedParser? in Subscription::Feed to avoid a weird error in XML::RSS

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Subscription/Feed.pm

    r861 r1886  
    55use base qw( Plagger::Plugin ); 
    66use Plagger::Util; 
    7  
    8 use XML::Feed; 
     7use Plagger::FeedParser; 
    98 
    109sub register { 
     
    3029 
    3130    my $content = Plagger::Util::load_uri($uri); 
    32     my $feed = eval { XML::Feed->parse(\$content) }; 
     31    my $feed = eval { Plagger::FeedParser->parse(\$content) }; 
    3332 
    3433    unless ($feed) { 
    35         $context->log( error => "Error loading feed $uri: " . ($@ || XML::Feed->errstr) ); 
     34        $context->log( error => "Error loading feed $uri: $@" ); 
    3635        return; 
    3736    }