Changeset 1988

Show
Ignore:
Timestamp:
11/01/07 05:53:52
Author:
otsune
Message:

assets/plugins/Filter-FindEnclosures/mainichi_jp.pl: rename and fix regexp
assets/plugins/Filter-TruePermalink/msn-mainichi.yaml: no need.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/assets/plugins/Filter-FindEnclosures/mainichi_jp.pl

    r969 r1988  
    1 # add Enclosure http://www.mainichi-msn.co.jp/photo/etc/photo_feature
     1# add Enclosure http://www.mainichi.jp/photo/etc
    22sub handle { 
    33    my ($self, $url) = @_; 
    4     $url =~ qr!http://www.mainichi-msn.co.jp/.*/graph/.*\d+\.html$!; 
     4    $url =~ qr!http://www\.mainichi\.jp/[\w/]+/graph/[\d/_]+\.html$!; 
    55} 
    66 
     
    88    my($self, $args) = @_; 
    99 
    10     if ($args->{content} =~ m!<div class="image"><a href="\d+\.html"><img src="(\d+\.jpg)"!) { 
     10    if ($args->{content} =~ m!<div class="SlidePhoto"><a href="\d+\.html"><img src="(\d+\.jpg)"!) { 
    1111        my $enclosure = Plagger::Enclosure->new; 
    1212        $enclosure->url( URI->new_abs($1, $args->{url}) );