Changeset 1330

Show
Ignore:
Timestamp:
08/15/06 21:32:35
Author:
miyagawa
Message:
  • Added new plugin Filter::ExtractAuthorName? to extract author name from RSS 2.0 <author> field
  • Fixed Aggregator::Simple bug to deal with single MediaRSS (magic) element
Files:

Legend:

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

    r1265 r1330  
    186186        my $media = $e->{entry}->{$media_ns}->{group} || $e->{entry}; 
    187187        my $content = $media->{$media_ns}->{content} || []; 
    188            $content = [ $content ] unless ref $content
     188           $content = [ $content ] unless ref $content && ref $content eq 'ARRAY'
    189189 
    190190        for my $media_content (@{$content}) {