Changeset 1577

Show
Ignore:
Timestamp:
08/23/06 21:23:08
Author:
miyagawa
Message:

support entry level image in RSS 0.91/2.0 I wonder why I haven't added support for this long time

Files:

Legend:

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

    r1493 r1577  
    9898 
    9999    if ($remote->format =~ /^RSS/) { 
    100         $feed->image( $remote->{rss}->image
     100        $feed->image( \%{$remote->{rss}->image}
    101101            if $remote->{rss}->image; 
    102102    } elsif ($remote->format eq 'Atom') { 
     
    160160        } 
    161161 
     162        # entry image support 
     163        if ($remote->format =~ /^RSS / and my $img = $e->{entry}->{image}) { 
     164            $entry->icon(\%$img); 
     165        } 
     166 
    162167        # TODO: move MediaRSS, Hatena, iTunes and those specific parser to be subclassed 
    163168