root/trunk/plagger/assets/plugins/Filter-FindEnclosures/plupsite_net_satsucolla.pl

Revision 1981 (checked in by otsune, 13 years ago)

assets/plugins/Filter-FindEnclosures/plupsite_net_satsucolla.pl: Opps. fix suffix.

Line 
1 sub handle {
2     my ($self, $url) = @_;
3     $url =~ qr!pulpsite\.net/satsucolla/colla/\d+\?!;
4 }
5
6 sub find {
7     my($self, $args) = @_;
8
9     if ($args->{content} =~ m!<IMG SRC="(http://pulpsite\.net/satsucolla/photos/\w+\.jpg)"!i) {
10         my $enclosure = Plagger::Enclosure->new;
11         $enclosure->url($1);
12         $enclosure->auto_set_type;
13         return $enclosure;
14     }
15
16     return;
17 }
Note: See TracBrowser for help on using the browser.