Changeset 2047

Show
Ignore:
Timestamp:
11/08/08 23:25:04
Author:
hsbt
Message:

support XML-Feed-0.3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm

    r1857 r2047  
    193193    return unless $content->body; 
    194194 
    195     if (ref($e) eq 'XML::Feed::Entry::Atom') { 
     195    if (ref($e) =~ /Atom/) { 
    196196        # in Atom, be a little strict with TextConstruct 
    197197        # TODO: this actually doesn't work since XML::Feed and XML::Atom does the right 
     
    202202            return Plagger::Text->new(type => 'html', data => $content->body); 
    203203        } 
    204     } elsif (ref($e) eq 'XML::Feed::Entry::RSS') { 
     204    } elsif (ref($e) =~ /RSS/) { 
    205205        # in RSS there's no explicit way to declare the type. Just guess it 
    206206        return Plagger::Text->new_from_text($content->body);