Changeset 866
- Timestamp:
- 05/30/06 17:32:50
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm (modified) (2 diffs)
- trunk/plagger/t/core/photocast.rss (added)
- trunk/plagger/t/core/photocast.t (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm
r865 r866 184 184 185 185 # Hatena Image extensions 186 my $hatena = $e->{entry}->{"http://www.hatena.ne.jp/info/xmlns#"} ;186 my $hatena = $e->{entry}->{"http://www.hatena.ne.jp/info/xmlns#"} || {}; 187 187 if ($hatena->{imageurl}) { 188 188 my $enclosure = Plagger::Enclosure->new; … … 194 194 if ($hatena->{imageurlsmall}) { 195 195 $entry->icon({ url => $hatena->{imageurlsmall} }); 196 } 197 198 # Apple photocast feed 199 my $apple = $e->{entry}->{"http://www.apple.com/ilife/wallpapers"} || {}; 200 if ($apple->{image}) { 201 my $enclosure = Plagger::Enclosure->new; 202 $enclosure->url( URI->new($apple->{image}) ); 203 $enclosure->auto_set_type; 204 $entry->add_enclosure($enclosure); 205 } 206 if ($apple->{thumbnail}) { 207 $entry->icon({ url => $apple->{thumbnail} }); 196 208 } 197 209
