root/trunk/plagger/assets/plugins/filter-entryfulltext/asahi_com.pl

Revision 481 (checked in by miyagawa, 14 years ago)
  • Added CustomFeed?::Simple to extract links that match a regexp. Fixes #32
  • Added Plagger::Date->strptime($format, $date)
  • Added decode_content and extract_title to Util
  • Support metadata in Config, for now
Line 
1 sub handle {
2     my($self, $args) = @_;
3     $args->{entry}->link =~ qr!^http://www\.asahi\.com/!;
4 }
5
6 sub extract {
7     my($self, $args) = @_;
8     ( $args->{content} =~ /<!-- Start of Kiji -->(.*)<!-- End of Kiji -->/s )[0];
9 }
Note: See TracBrowser for help on using the browser.